Setup your development
Learn how to develop your app locally.Prerequisites
- Node.js: v20.12.2 or higher
- pnpm: v9.1.0 or higher
- Cloudflare account for API deployment and deploy
- Neon account for API database
Installation and Development
1
Clone the repository
Clone the repository using the following command:
2
Install dependencies
Install the project dependencies using pnpm:
3
Setup environment variables
Copy the Make sure to replace the placeholders with your actual database credentials.
.env.example file to .env and set the environment variables.To set up your database:- Create a new database in Neon Console
- Once created, find your database connection string under “Connection Details”
- Copy the connection string to your
.dev.varsfile:
4
Start development server
Run the development server:It will start the development server and the admin panel at the same time using Turborepo.
- The admin panel is available at http://localhost:5173.
- The API is available at http://localhost:8787.