Starting node-server from /server:
Import donorapp.sql into MySQL server. If needed, find the following lines in your server/app.js and modify it as per your configuration.
app.use(function(req, res, next) {
res.locals.connection = mysql.createConnection({
host : 'your_host',
user : 'your_root',
database : 'your_database_name',
password: "your_password_here"
});
res.locals.connection.connect();
next();
});
Do npm install
- This will install all the dependencies listed in the package.json.
node app.js
will start the server on localhost:4000
Starting the react application from /frontend:
npm install
in the frontend folder.npm start
and the client will be started at localhost:3000. The proxy is already configured to make all the requests to localhost:4000.This is the current homepage:
The template of the project
The template from which the project has been bootstrapped is in /client/public/blooddonar-template
.