-
Clone the project
git clone https://github.com/SMU-IS/Timperio -
Install dependencies
cd frontend npm installcd backend mvn clean install -U -
Set up environment variables
create the file
.envatbackend/.envDB_URL=jdbc:postgresql://localhost:5432/timperiodb DB_USERNAME=postgres DB_PASSWORD=root JWT_SECRET_KEY={JWT_SECRET_KEY} SERVER=//localhost:5173 MAILCHIMP_API_KEY={MAILCHIMP_API_KEY} FRONT_END_SERVER_URL=https://timperio-t5.vercel.app TEMPLATE_DIR=template TEMPLATE_FILE_NAME=campaign_template.html LOGIN_EMAIL={EMAIL} LOGIN_PASSWORD={PASSWORD}create the file
.envatfrontend/.envVITE_SERVER=http://localhost:8080 -
Run the project in development environment
frontend - npm run dev backend - mvn spring-boot:run -
Login credentials
Role Email Password ADMINadmin@timperio.compassword123MARKETINGmarketing@timperio.compassword123SALESsales@timperio.compassword123 -
Populate local database
Authenticate to obtain a token
POST /api/v1/auth/login Content-Type: application/json { "userEmail": "your-email", "password": "your-password" }
Response 200 OK { "token": "your-jwt-token", "expiresIn": 3600, "role": "ADMIN" }Call this endpoint to populate your local database
POST /api/v1/import-data Authorization: Bearer your-jwt-token
Response 200 OK Customer and Purchase History tables populated
http://18.142.86.101:8080/swagger-ui/index.html
Developed by Team 5
ย
ย
ย
ย