Swap routines with strangers and experience new ways of living.
LifeSwap is a web app that allows users to upload their daily routine and randomly receive someone else's routine to follow for a day. The goal is to foster empathy, explore different habits, and step out of the comfort zone through unexpected experiences.
You can check out the live demo of the app here: Live Demo
Integrantes:
- Rosanne Celeste Lopez - Frontend y UX/UI
- Wilson Bernardo Bravo Ceballos - Backend
- Maria Angelica Castillo Sanchez - Qa tester
erDiagram
USER {
string id PK
string username
string email
string password
string assigned_routine
string created_at
string updated_at
}
CATEGORY {
string id PK
string name
}
SUBCATEGORY {
string id PK
string name
string category_id FK
}
ACTIVITY {
string id PK
string title
string description
string time
string subcategory_id FK
string routine_id FK
}
GOAL {
string id PK
string period "Enum: DAILY, WEEKLY, MONTHLY"
int value
string unit_id FK
string activity_id FK
}
UNIT {
string id PK
string name
}
ROUTINE {
string id PK
string title
string description
string user_id
}
CATEGORY ||--o{ SUBCATEGORY : "category_id"
SUBCATEGORY ||--o{ ACTIVITY : "subcategory_id"
ACTIVITY ||--|| GOAL : "activity_id"
UNIT ||--o{ GOAL : "unit_id"
ROUTINE ||--o{ ACTIVITY : "routine_id"
USER ||--o{ ROUTINE : "user_id"
Node version:
>=20.x
Create the .env
file using the .env.example
file as a reference
Install pnpm
globally
npm install -g [email protected]
Inside the backend
directory, run the following command
pnpm install
Add the seeds
to the database
pnpm prisma:seed
pnpm prisma:seed-routines
Run the application
pnpm run dev
- node.js: Version 20.x.x
- npm: Version 10.2.x
node -v
npm -v
npm install
ng serve