Copy environment variables to the .env file
cp .env.example .env
Start the services
docker compose up -d
POST /auth/register
- Register userPOST /auth/login
- Login with credentials
GET /api/vendors
- List all vendorsGET /api/vendors/:id
- Get vendor detailsPOST /api/vendors
- Create new vendorPUT /api/vendors/:id
- Update vendor detailsDELETE /api/vendors/:id
- Deactivate vendorPOST /api/vendors/:id/menu
- Add item to menuDELETE /api/vendors/:id/menu
- Remove item from menu
GET /api/customers/profile
- Get customer profilePUT /api/customers/profile
- Update customer profilePOST /api/customers/favorites
- Add vendor to favoritesDELETE /api/customers/favorites/:vendorId
- Remove vendor from favorites
GET /api/vendors/:id/reviews
- List reviews for a vendorPOST /api/vendors/:id/reviews
- Add a reviewPUT /api/vendors/:id/reviews/:reviewId
- Update a reviewDELETE /api/vendors/:id/reviews/:reviewId
- Delete a review
GET /api/search?q=query&lat=latitude&lng=longitude
- Search vendors by query and location
id
: number;name
: string;description
: string;location
:latitude
: number;longitude
: number;
operatingHours
:open
: string;close
: string;
photos
: string[];menu
: MenuItem[];reviews
: Review[];
id
: numbername
: stringemail
: stringfavoriteVendors
: string[]
id
: numberreviewer
: Customervendor
: Vendorrating
: numbertext
: stringcreatedAt
: TimestampisEnabled
: boolean
id
: number;name
: string;description
: string;price
: number;