A lightweight RESTful API built using Express.js and PostgreSQL to support the Recipe Mobile App. This backend handles recipe data, categories, favorites, and integrates with Clerk authentication.
- Express.js REST API
- PostgreSQL database
- Clerk user authentication middleware
- CRUD for Recipes & Categories
- Favorites system (save/remove)
- Environment-based configuration
- Node.js + Express
- PostgreSQL
- Drizzle ORM
- JWT / Clerk Auth
- Dotenv for environment variables
Create .env file:
DATABASE_URL=postgresql://username:password@localhost:5432/recipe_db
PORT=5001
CLERK_SECRET_KEY=your-secret-key
npm install
npx drizzle-kit migrate
npm run dev
Server will run on:
http://localhost:5001
Protected routes use Clerk verification middleware:
Authorization: Bearer <token>
This project is license