Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wellpinho/restaurant-backend

project created to support the frontend of the nextjs course
https://github.com/wellpinho/restaurant-backend

Last synced: 13 days ago
JSON representation

project created to support the frontend of the nextjs course

Awesome Lists containing this project

README

        

# restaurant-backend

## ✨ Tools
- Nodejs
- [Typescript](https://www.typescriptlang.org/)
- 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`
- 2. `cd restaurant-backend`
- 3. `npm i`
- 4. Rename the file .env-example for .env and edite the values with your DATABASE_URL
- 5. `npx prisma generate`
- 6. `npx prisma migrate dev --name init`
- 7. `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](https://www.linkedin.com/in/wellpinho/)
[Portfólio](https://wellpinho.com)