| Role | Password | |
|---|---|---|
| Role 1 (HR) | Philip.Lee@allinone.com.sg | password123 |
| Role 2 (Staff) | Ngoc.Trinh@allinone.com.vn | password123 |
| Role 3 (Manager) | Rahim.Khalid@allinone.com.sg | password123 |
-
Clone the project
git clone https://github.com/SMU-IS/IS212-T7 -
Install dependencies
cd frontend npm installcd backend npm install -
Set up environment variables
-
Create the file
.envatbackend/.env -
Enter the following code
DOMAIN=//localhost:3001 CONNECTION_STRING=<REFER TO CONFLUENCE> MIGRATE_MONGO_URI=<REFER TO CONFLUENCE> MIGRATE_MONGO_COLLECTION=migrations MIGRATE_CONFIG_PATH=./migrate MIGRATE_MIGRATIONS_PATH=./migrations MIGRATE_TEMPLATE_PATH=./migrations/template.ts MIGRATE_AUTOSYNC=false MIGRATE_MODE=development SMTP_HOST=<REFER TO CONFLUENCE> SMTP_AUTH_USER=<REFER TO CONFLUENCE> SMTP_AUTH_PASSWORD=<REFER TO CONFLUENCE> -
Create the file
.envatfrontend/.env -
Enter the following code
VITE_BACKEND_URL=//localhost:3001
-
Run the project in development environment
npm run dev -
To run test
cd backend npm run test
https://www.lurence.org/api/v1/docs
Developed by G5, Team 7
Â
Â
Â
Â
Â