System Management for Doctors
This is a React and Express stack application with Mysql data base .It is a small systems to manage patients with their appointments with the doctor and make prescription of them.
there is config file to api into utils folder api.js
, to contact with backend.
there is config file to data base into config folder db.js
, to contact data base with api.
module.exports = {
username: [your username],
password: [your password],
database: [your data base],
host: 'localhost',
dialect: 'mysql',
jwtSecret: [your secret into jwt],
};
npm install
cd client
npm install
into backend folder
npm run server
into frontend folder
npm start
cd client
npm run build
After running a build in the client 👆, cd into the root of the project.
And run...
Linux/Unix
NODE_ENV=production node server.js
Windows Cmd Prompt or Powershell
$env:NODE_ENV="production"
node server.js