https://github.com/jamison0902/livros-next
CRUD usando Nexjs, TypeScript e MongoDB Atlas
https://github.com/jamison0902/livros-next
bootstrap5 mongodb-atlas next react typescript
Last synced: 2 months ago
JSON representation
CRUD usando Nexjs, TypeScript e MongoDB Atlas
- Host: GitHub
- URL: https://github.com/jamison0902/livros-next
- Owner: jamison0902
- Created: 2023-03-15T02:08:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-16T01:29:08.000Z (over 3 years ago)
- Last Synced: 2025-01-03T12:19:10.657Z (over 1 year ago)
- Topics: bootstrap5, mongodb-atlas, next, react, typescript
- Language: TypeScript
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Exemplo de app utilizando MongoDB Atlas
Foi utilizado MongoDB Atlas, TypeScript e Nextjs no desenvolvimento dessa tela de catastro de livro:

## Configuração
### Configuração de variáveis
É necessário fazer a configuração de acesso ao MongoDB no arquivo `.env.local`:
```bash
MONGODB_URI =
URL = http://localhost:3000
```
A variável URL deve ficar desse jeito pois executei os comandos localmente.
### Informações adicionais
Foi utilizada um database chamado `catalogo` e uma collection chamada `livro`
### Execute o Next.js no modo desenvolvimento
```bash
npm install
npm run dev
# or
yarn install
yarn dev
```