/backend-pizzaria

An API to control a pizzeria, being able to create orders, view order details and finalize orders

Primary LanguageTypeScript

API Pizzaria 💻

TechnologiesGetting StartedAPI Endpoints

An API to control a pizzeria, being able to create orders, view order details and finalize orders.

💻 Technologies

  • NodeJs
  • Express.js
  • PostgreSQL
  • Prisma
  • JavaScript
  • TypeScript
  • Json Web Token
  • bcryptjs
  • Cors

🚀 Getting started

Prerequisites

Here you list all prerequisites necessary for running your project. For example:

Cloning

How to clone your project

git clone https://github.com/jjhonny/backend-pizzaria.git

Config .env variables

Use the .env.example as reference to create your configuration file .env with your Credentials

DATABASE_URL="postgresql://test:test@localhost:5432/test?schema=public"
JWT_SECRET=test_secret

Starting

How to start your project

cd project-name
yarn
yarn dev

📍 API Endpoints

USER

POST /users

POST /session

GET /me

CATEGORY

POST /category

GET /categories

PRODUCT

POST /product

GET /category/product

ORDER

POST /order

DELETE /order

POST /order/add

DELETE /order/remove

PUT /order/send

GET /orders

GET /order/detail

PUT /order/finish