This is the server side of InGelt Board. This script serves ReactJS based Frontend for:
- STUDENT
- TEACHER
- ADMIN
- PRODUCT PAGE
TESTING
-
Install libraries and dependencies
npm install -
Seed the DB for Testing
npx sequelize db:seed:all -
Start MySQL instance on your local machine
-
Start the development server
npm start
- NodeJS: for the run-time environment.
- ExpressJS: application framework.
- MySQL: database (Hosted) (Use the Provided config only)
- Docker: for containerizing the application.
/ config (stores DB configuration).
/ config.json
/ models (stores model files & index.js).
/ associations (contains all association rules for Database).
/ services (contains all services i.e. API endpoints with functionality created using utils).
/ utils (contains all utils i.e. CRUD functions for all Models).
/ seeders (contains dummy data for testing or Seeds).
- server.js
- Dockerfile
- .env
- package.json
- package-lock.json
- .gitignore
- README
IMPORTANT: Use camelCase for naming any variable, model, file, attribute, etc.
Type of API: REST
Recommended: Install and use MySQL Workbench to work smoothly with the database.