This is a TypeScript-based API built with Express and Drizzle ORM. It provides endpoints for managing jwt authentication and authorization, as well as CRUD operations for various resources.
To get started with this project, follow these steps:
- Clone the repository to your local machine.
- Install the dependencies using
pnpm install. - Create a
.envfile in the root directory and add the necessary environment variables (see.env.examplefor an example). - Run the development server using
pnpm dev.
In the project directory, you can run:
Builds the TypeScript code into JavaScript code.
pnpm build
Runs the app in development mode using Nodemon and tsx.
pnpm dev
Drops the database specified in the drizzle.config.ts file.
pnpm db:drop
Generates database schema files based on the models in the src/db/migrations directory.
pnpm db:generate
Pushes the database schema files to the database specified in the drizzle.config.ts file.
pnpm db:push
Opens the Drizzle Studio web interface for managing the database.
pnpm db:studio