To get started with the app application on your local machine, follow these steps:
Taking in consideration Node.js v20+, PnPM and Docker is already installed.
- Clone the repository:
git clone <repository-url>- Install the required dependencies:
pnpm install- Set up the environment variables:
cp .env.example .env- Set up the database:
chmod +x ./start-database.sh
./start-database.shor
docker compose -f "docker-compose.yml" up -d --build- Push the schema directly into the database:
pnpm run db:push- Run the application:
pnpm run dev- (Optional) Other useful commands:
Interact with the database with a GUI tool
pnpm run db:studioGenerate migration based on your schema
pnpm run db:generateApply the migration stored in you migrations folder
pnpm run db:studioThe application should now be perfectly running locally on http://localhost:3000.