Duty ToDo App is a full-stack application that allows you to perform CRUD operations on duties. The repository is structured as a monorepo, consisting of two components: frontend and backend.
Before getting started, make sure you have the following prerequisites installed:
- NodeJS >= 18
- pnpm (optional, but recommended for workspace feature)
- PostgreSQL or Docker
Follow the steps below to start using the Duty ToDo App:
Navigate to the backend directory:
cd backend
Install the dependencies using your preferred package manager (e.g., pnpm, yarn, or npm):
pnpm install
If the PostgreSQL database is not already running, start it using Docker:
docker compose up -d
Update the database.json
file for database migration.
Run the database migration to set up the schema:
pnpm db-migrate up
Create a file for environment variable injection during development:
cp .env.example .env.local
Start the backend server:
pnpm dev
Open another terminal window and navigate to the frontend directory:
cd frontend
Install the dependencies using your preferred package manager:
pnpm install
Create a file for environment variable injection during development:
cp .env.example .env.local
Start the frontend development server:
pnpm dev
For more commands and information, please refer to the corresponding component's documentation.
For instructions on how to use the application, please refer to the User Documentation located in the "doc" directory.