Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matheustorresdev97/in.orbit-api
Back-End do gerenciador de metas In.Orbit
https://github.com/matheustorresdev97/in.orbit-api
drizzle fastify nodejs sql typescript
Last synced: about 1 month ago
JSON representation
Back-End do gerenciador de metas In.Orbit
- Host: GitHub
- URL: https://github.com/matheustorresdev97/in.orbit-api
- Owner: matheustorresdev97
- Created: 2024-09-16T22:43:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T21:09:45.000Z (3 months ago)
- Last Synced: 2024-10-13T01:41:06.692Z (2 months ago)
- Topics: drizzle, fastify, nodejs, sql, typescript
- Language: TypeScript
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
In Orbit API
Backend do projeto In Orbit gerenciador de metas
Frontend |
Tecnologias |
Deploy |
Projeto |
## 🖼️ Frontend
O frontend desta aplicação encontra-se no repositório:
- [in.orbit-web](https://github.com/matheustorresdev97/in.orbit-web)## 🦾 Tecnologias
Esse projeto foi desenvolvido com as seguintes tecnologias:
- NODE.JS
- FASTIFY
- DRIZZLE-ORM
- ZOD
- TYPESCRIPT## 🚀 Deploy
1. Faça o clone do projeto em uma pasta local
2. Acesse a pasta onde foi feito a cópia:
3. Instale as dependencias do projeto:
```bash
npm install
```
4. Configure as variáveis de ambiente criando o arquivo `.env` (use o arquivo `.env.example` como modelo)
5. Execute as `migrations`
```bash
npx drizzle-kit generate
```
6. execute as `seeds`
```bash
npm run seed
```
7. Execute o servidor backend da aplicação:
```bash
npm run dev
```## 💻 Projeto
```
POST http://localhost:3333/goals
Content-Type: application/json{
"title": "My New Goal",
"desiredWeeklyFrequency": 3
}###
POST http://localhost:3333/completions
Content-Type: application/json{
"goalId": "aqfg79yjqgmbjpgt5r6ywp48"
}###
GET http://localhost:3333/pending-goals
###
GET http://localhost:3333/summary
###
DELETE http://localhost:3333/goal
Content-Type: application/json{
"goalId": "12345"
}###
DELETE http://localhost:3000/completion
Content-Type: application/json{
"completionId": "67890"
}
```