Skip to content

No-Country-simulation/c24-34-t-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

LifeSwap

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.

Live Demo

You can check out the live demo of the app here: Live Demo

Equipo

C24-24t-webapp

Integrantes:

  • Rosanne Celeste Lopez - Frontend y UX/UI
  • Wilson Bernardo Bravo Ceballos - Backend
  • Maria Angelica Castillo Sanchez - Qa tester

💻 Technologies

FrontEnd

  • Angular
  • Tailwind
  • Angular CDK

BackEnd

  • NestJS
  • Prisma
  • PostgreSQL

Relational Database Diagram

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"
Loading

🚀 Getting Started

BackEnd

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

FrontEnd

Prerequisites

  • node.js: Version 20.x.x
  • npm: Version 10.2.x

You can verify your versions by running the following commands in your terminal:

node -v
npm -v

Installation

1. Install dependencies.

npm install

2. Usage

ng serve