Delic is an online restaurant application backend built with Node.js and Express.
- User authentication & authorization
- Menu management
- Order processing
- Payment integration
- Middleware for validation & error handling
- Database migrations & models
- Node.js
- Express.js
- Sequelize (ORM)
- PostgreSQL
- Multer (for file uploads)
Delic_Restaurant/
│── config/ # Configuration files
│── controller/ # Route controllers
│── middlewares/ # Middleware functions
│── migrations/ # Database migrations
│── models/ # Database models
│── routes/ # API route definitions
│── utils/ # Utility functions
│── index.js # Application entry point
git clone git@github.com:Zobamba/Delic.git
cd Delic
npm installCreate a .env file in the root directory and add:
PORT=5000
DATABASE_URL=your_database_url
JWT_SECRET=your_secret_keynpm start| Method | Endpoint | Description |
|---|---|---|
| POST | /sign_up | Sign Up |
| POST | /sign_in | Login |
| GET | /menus | Get all menu items |
| POST | /menus | Create menu item |
| POST | /orders | Place a new order |
| GET | /orders | Get user orders |
MIT License