Fragments is a REST API based on node.js
that uses Express
framework.
It is an ongoing practical project to be completed for the course CCP555 in the Computer Programming and Analysis program at Seneca College.
# starts server normally
npm start
# starts server using nodemon to restart it when changes happen
npm run dev
# starts server same as in dev, but also starts Node Inspector
# on port 9229 to attach a debugger (e.g., VSCode)
npm run debug
This is a dev dependency that will be used to auto format source code files within the project
This is a dev dependency tool that will be used to find problems within the project's source files.
The script for using it from the command line is defined inside package.json
scripts with the key lint
. To use it:
npm run lint
This is a dev dependency tool that is used to automatically reload our server when there is a code change.
A middleware used in our Express app that attempts to compress response bodies of our requests.
A middleware used in our Express app to make requests across origins.
A Node.js framework to build web applications and APIs. This will be the framework used to build our app.
A middleware that helps in securing our application.
A Node.js logger tool that is used to do Structured Logging and display nicely formatted JSON string.
A tool to allow our server to exit gracefully when shutting down.