https://github.com/alyssonbarrera/nlw-pocket-server
Projeto Back-end | NLW Pocket - Rocketseat
https://github.com/alyssonbarrera/nlw-pocket-server
drizzle-orm fastify nodejs zod
Last synced: 2 months ago
JSON representation
Projeto Back-end | NLW Pocket - Rocketseat
- Host: GitHub
- URL: https://github.com/alyssonbarrera/nlw-pocket-server
- Owner: alyssonbarrera
- Created: 2024-09-12T00:59:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T01:29:38.000Z (almost 2 years ago)
- Last Synced: 2025-12-05T11:50:51.875Z (7 months ago)
- Topics: drizzle-orm, fastify, nodejs, zod
- Language: TypeScript
- Homepage:
- Size: 1.29 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API
Goal tracking with weekly progress API
---
Documentation for the API can be found [here](https://documenter.getpostman.com/view/20700565/2sAXqmCmGh)
---
### 💻 To run on your machine, follow the steps below:
📄 Clone the project on your machine;
🔐 Having done that, go into the project folder and create the .env file;
📄 Once created, it should contain:
```
# Database
DATABASE_URL="postgresql://docker:docker@localhost:5432/nlw_pocket_db"
# Server
PORT=3333
```
💡 Remember to update the variables based on your configurations.
📂 Next, open the terminal in the project folder and run the following command:
```shell
docker compose up
```
⌨ After that, it will be necessary to install the dependencies, so run the following command in your terminal:
```shell
npm install
```
🌎 Next, run the migrations using:
```shell
npm run migration:run
```
🚀 Finally, to start the application, run:
```shell
npm run dev
```
📡 With everything set up, you will be able to access the application using:
```text
http://localhost:3000
```
---
## Stack
- TypeScript
- Node.js
- PostgreSQL
- Fastify
- Drizzle ORM
- Zod