Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heliolj/nlw-spacetime-api
Back-end usando NodeJS, Fastify, Prisma, TypeScript e mais tecnologias. Criado durante o evento da Rocketseat NLW.
https://github.com/heliolj/nlw-spacetime-api
axios cors dotenv eslint fastify jwt nodejs oauth prisma sqlite typescript zod
Last synced: 17 days ago
JSON representation
Back-end usando NodeJS, Fastify, Prisma, TypeScript e mais tecnologias. Criado durante o evento da Rocketseat NLW.
- Host: GitHub
- URL: https://github.com/heliolj/nlw-spacetime-api
- Owner: helioLJ
- License: mit
- Created: 2023-05-18T15:11:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-19T23:05:59.000Z (over 1 year ago)
- Last Synced: 2024-11-25T23:33:54.489Z (3 months ago)
- Topics: axios, cors, dotenv, eslint, fastify, jwt, nodejs, oauth, prisma, sqlite, typescript, zod
- Language: TypeScript
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Logo](https://i.imgur.com/0pfQfeX.png)
# NLW Space Time API 🛰️
Back-end usando NodeJS, Fastify, Prisma, TypeScript e mais tecnologias. Criado durante o evento da Rocketseat NLW.
## Índice
- [Stack utilizada ⚙️](#stack-utilizada)
- [Funcionalidades 🎯](#funcionalidades)
- [Variáveis de Ambiente 🔑](#variáveis-de-ambiente)
- [Rodando localmente 🏠](#rodando-localmente)
- [Licença 📜](#licença)## Stack utilizada
![node.js](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white)
![typescript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)
![prisma](https://img.shields.io/badge/Prisma-3982CE?style=for-the-badge&logo=Prisma&logoColor=white)
![fastify](https://img.shields.io/badge/fastify-202020?style=for-the-badge&logo=fastify&logoColor=white)
![jwt](https://img.shields.io/badge/JWT-000000?style=for-the-badge&logo=JSON%20web%20tokens&logoColor=white)
![sqlite](https://img.shields.io/badge/SQLite-07405E?style=for-the-badge&logo=sqlite&logoColor=white)
![eslint](https://img.shields.io/badge/eslint-3A33D1?style=for-the-badge&logo=eslint&logoColor=white)### Outras Libs
- DotEnv
- CORS
- Zod
- Axios## Funcionalidades
- Cadastrando usando OAuth do GitHub
- CRUD de Memórias## Variáveis de Ambiente
Para rodar esse projeto, você vai precisar adicionar variáveis de ambiente, como mostra o arquivo `env.example`
```env
# Database
DATABASE_URL="file:./dev.db"# Github (Web)
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=# Github (Mobile)
# GITHUB_CLIENT_ID=
# GITHUB_CLIENT_SECRET=# JWT Secret
AUTH_SECRET=```
## Rodando localmente
Clone o projeto
```bash
git clone https://github.com/helioLJ/nlw-spacetime-api
```Entre no diretório do projeto
```bash
cd my-project
```Instale as dependências
```bash
npm install
```Inicie o servidor
```bash
npm run dev
```## Licença
- 📜 [MIT](./LICENSE)