Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.97 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.97 KB

Backend File Structure

.
├── src/                    # Contains the main application code
│   ├── controllers/        # Contains controller functions for handling requests
│   ├── middleware/         # Contains middleware functions for processing requests and responses
│   ├── models/             # Contains data models for interacting with the database
│   ├── routes/             # Contains route definitions and handlers
│   ├── services/           # Responsible for querying the database
│   ├── json/               # Contains json files
│   ├── app.js              # Main Express.js application file
│   ├── configs/            # Configuration files for the application
│   └── validations/        # Backend calls validations
│── test/                   # Contains unit tests for the application
│   ├── controllers/        # Contains unit tests for controller functions
│   ├── middleware/         # Contains unit tests for middleware functions
│   ├── models/             # Contains unit tests for data models
│   ├── routes/             # Contains unit tests for route handlers
│   ├── utils/              # Contains unit tests for utility functions and modules
│   └── setup.js            # Setup file for running tests
├── node_modules/           # Contains all installed node modules
├── package.json            # Contains metadata about the project and its dependencies
└── README.md               # Contains documentation for the project

Deploying Instructions

Run npm install when in this directory before running any other command.

npm start

Used to initialize the backend with nodemon.

npm test

Used to run the Mocha Unit Tests of the system.

npm coverage

Used to run the unit tests as well as show code coverage using Istanbul(nyc).