Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leguass7/bordadoos-frontend
NextJs frontend
https://github.com/leguass7/bordadoos-frontend
nextjs nodejs prisma react
Last synced: 6 days ago
JSON representation
NextJs frontend
- Host: GitHub
- URL: https://github.com/leguass7/bordadoos-frontend
- Owner: leguass7
- Created: 2021-11-24T20:53:41.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T03:45:47.000Z (over 1 year ago)
- Last Synced: 2023-07-11T04:25:25.767Z (over 1 year ago)
- Topics: nextjs, nodejs, prisma, react
- Language: TypeScript
- Homepage: https://bordadoos-frontend.vercel.app
- Size: 2.32 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
# bordadoos-frontend
## Scripts de inicialização
```yarn install``` para instalar as dependências
```yarn dev``` para iniciar em modo de desenvolvimento```yarn prisma generate``` para gerar typescript dos modelos do banco de dados
```yarn prisma migrate dev``` para gerar tabelas no banco de dados **(*)**Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Iniciar database (*)
1) Configure no arquivo `.env` a variável `DATABASE_URL` para o funcionamento do [Prisma.io](https://www.prisma.io/docs/concepts/database-connectors/postgresql)
2) Configure também no arquivo `.env` as variáveis para container do [Docker](https://www.docker.com/): `POSTGRES_DB`, `POSTGRES_USER` e `POSTGRES_PASSWORD`.
ex.:
```
DATABASE_URL="postgresql://bordadoos:123456@localhost:5432/bordadoos"POSTGRES_DB=bordadoos
POSTGRES_USER=bordadoos
POSTGRES_PASSWORD=123456
```3) Rode o docker compose na raiz do diretório
```
docker-compose -f "docker-compose.yml" up -d --build
```