Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/david-lafontant/resto
This project intended to be an API build with Next.js and PostgreSQL
https://github.com/david-lafontant/resto
Last synced: 12 days ago
JSON representation
This project intended to be an API build with Next.js and PostgreSQL
- Host: GitHub
- URL: https://github.com/david-lafontant/resto
- Owner: david-lafontant
- Created: 2023-12-07T16:41:14.000Z (about 1 year ago)
- Default Branch: develop
- Last Pushed: 2023-12-11T14:23:16.000Z (about 1 year ago)
- Last Synced: 2023-12-12T01:29:18.181Z (about 1 year ago)
- Language: TypeScript
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RESTO API
This project wiil be an API for a restaurant.
It's building with Next.js and PostgreSQL## Tech needed
In order to run this app locally you need:
- [Node](https://nodejs.org/en/download)
- [Next](https://nextjs.org/docs)
- [PostgreSQL](https://www.postgresql.org/download/)
- [Git](https://git-scm.com/downloads)## Getting Started
Once you clone this repository
you need to install the packages
```bash
npm i```
the you need to create an `.env` file with the following enviroment variable:
`DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/resto?schema=public"``
replace the username `johndoe` and the password `randompassword` with your own local credentialsTo run the development server:
```bash
npm run dev```
Then open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
## Sted done
- setup repository
- connect with PostgreSQL
- create resto database and user's table## Next steps
* create the routes
* Setup user authetication
* Implement authoprization for the different kinds of users
* Deploy