This is a serverless API using the Neon Database. It's designed to be deployed on Cloudflare Workers.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have Node.js and npm installed on your machine. You also need to have a PostgreSQL database available for connection.
- Clone the repository
- Install the dependencies with
npm install
- Copy the
.env.example
to.env
and fill in your database connection details
npm run deploy
: Deploy the application using Wranglernpm run dev
: Start the development server using Wranglernpm run start
: Alias fornpm run dev
npm run db:generate
: Generate the database schema using Drizzle Kitnpm run db:migrate
: Run the database migrations