This application uses an Express.js back end, saves and retrieves note data from a JSON file.
The application’s front end was already created. Task was to build the back end, connect it with the front end, and then deploy the entire application to Heroku.
- Description
- Installation
- Usage
- Directory Structure
- Technologies Used
- Tests
- Features
- Appearance
- Setup
- Acknowledgements
- Questions
- License
Install dependencies using:
npm install
The application will be invoked by using the following command:
npm run watch
.
├── **_tests_**/
├── .github/workflows
├── assets/
├── controllers/
│ ├── notes.js
│ └── view.js
├── db/
├── helpers/
├── public/
├── routes/
│ ├── api/
│ └── view/
├── .gitignore
├── index.js
└── package.json
- Node.js
- Express framework
- Heroku
- JavaScript
Routes can be tested via Postman or Insomnia. Seperate SuperTests have been added to the tests folder to test both GET and POST routes and could be run via the terminal using:
npm run test
Additional testing scripts for the DELETE route could be added as an improvement.
An automated github actions feature has been added to run the tests above with every git push action.
- Text editor (VS Code recommended)
- An Internet browser (Google Chrome recommended)
- Nodejs must be installed
- https://www.npmjs.com/package/uuid
- https://www.npmjs.com/package/express
- https://www.npmjs.com/package/nodemon
- https://www.npmjs.com/package/supertest
- https://www.npmjs.com/package/http-status-codes
Created by: @moedaaboul
Feel free to contact me via muhammad.daaboul1989@gmail.com!
This work is licensed under MIT.