A portal app to raise request for training courses, inspired by this project by Brad Traversy
App URL here
Use the npm package manager to install node modules.
npm install # installs backend node modules
cd client # switch to frontend client directory
npm install # installs frontend node modules
cd .. # return to project root directory
Add two .json
configuration files in the config
directory, and save them as default.json
and production.json
The configuration files should contain the following:
{
"mongoURI": #Your MongoDB connection URI wrapped in double-quotes
"jwtSecret": #Any string as your JSON web token secret
"SENDGRID_API_KEY": #Sendgrid API key for sending email notifications
}
In the project root directory, run this command:
npm run dev # app starts at http://localhost:3000
In the project root directory, run this command:
heroku create #Create your app on Heroku
git push heroku master #Deploy your app to Heroku
If you encounter proxy error when accessing app, stop the app before connecting to backend server by running this command:
npm run server # backend server starts at http://localhost:5000
Then, authenticate yourself via Postman before stopping the server. Afterwards start app again and try access app at http://localhost:3000
Download Postman collection here
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.