On the command prompt run the following commands
$ git clone https://github.com/dpoarch/React-Express-Mysql-RESTFUL-API.git
$ cd React-Express-Mysql-RESTFUL-API/views
$ npm install
$ npm start
port runs at localhost:
http://localhost:3000
Edit secret.js file in backend folder
const mysql = require('mysql');
const connection = mysql.createConnection({
host: "localhost",
user : 'root',
password : '',
database : 'video_url',
});
module.exports = connection;
configure your database connection
Run the following command
$ npm install
$ node server.js
localhost server runs at port 3002
http://localhost:3002