Grade-B website:
https://bmarket.ml/
How to run these files?
Step1: npm install
Step2: npm install -g nodemon
Step3: nodemon src/index.js
Folder Structure:
- src/controllers: Controllers are typically callback functions that
- corresponds to the routers to handle requests.
- src/loaders: Allows to connect native node modules with node extension.
- src/model: To create module that connects to the database and exports
- some functions that let us operate on the data.
- src/public: To store upload images.
- src/routes: To store routes.
- src/utils: encryptor and input validator.
- src/api: Website's api url.
- /.eslintrc: Eslint coding style.
- /.env: Environment variable to save API key. (We didn't upload it for safty)