This is a project for AF Assignment focusing on a Timetable system.
- Node.js (v14.x or higher)
- npm or yarn
- MongoDB
-
Clone the repository:
git clone https://github.com/sliitcsse/assignment-01-russellpeiris.git
-
Navigate to the project directory:
cd assignment-01-russellpeiris -
Install dependencies:
npm install
-
Create a
.envfile in the root directory and add the following environment variables:PORT=4000 MONGO_URI=mongodb+srv://admin:admin@af.haslhbb.mongodb.net/ JWT_SECRET= SALT_SECRET= MAIL_USER= MAIL_CLIENT_ID= MAIL_CLIENT_SECRET= REFRESH_TOKEN= REDIRECT_URI=
To run the application in development mode with nodemon:
npm run devTo build and run the application in production mode:
npm run build
npm startTo lint and fix the code:
npm run formatnpm run seednpm run test