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
.env
file in the root directory and add the following environment variables:PORT=4000 MONGO_URI=mongodb+srv://admin:[email protected]/ 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 dev
To build and run the application in production mode:
npm run build
npm start
To lint and fix the code:
npm run format
npm run seed
npm run test