/restaurant-backend

project created to support the frontend of the nextjs course

Primary LanguageTypeScriptMIT LicenseMIT

restaurant-backend

✨ Tools

  • Nodejs
  • Typescript
  • Express
  • Cors
  • Prisma.io
  • Postgres

💻 Project

project created to support the frontend of the nextjs course

🚀 How execute

  • Clone this repository
    1. git clone https://github.com/wellpinho/restaurant-backend.git
    1. cd restaurant-backend
    1. npm i
    1. Rename the file .env-example for .env and edite the values with your DATABASE_URL
    1. npx prisma generate
    1. npx prisma migrate dev --name init
    1. npm run dev

Access the app with postman or insominia http://localhost:5000 or http://localhost:4000

Routes

http://localhost:5000/restaurants

Access the supabase and check if your tables are created with the data.

📄 Licençe

MIT

Created by Wellington Pinho 👋🏻   Linkedin Portfólio