Skip to content

Commit

Permalink
Merge pull request #6 from lucasoliveirabr/feature/database-connection
Browse files Browse the repository at this point in the history
Feature/database connection
  • Loading branch information
lucasoliveirabr authored Jan 6, 2025
2 parents 87322de + 40fc9bc commit 2fb1c30
Show file tree
Hide file tree
Showing 14 changed files with 445 additions and 575 deletions.
3 changes: 3 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ CORS_ORIGIN="http://localhost:*" # Allowed CORS origin, adjust as necessary
# Rate Limiting
COMMON_RATE_LIMIT_WINDOW_MS="1000" # Window size for rate limiting (ms)
COMMON_RATE_LIMIT_MAX_REQUESTS="20" # Max number of requests per window per IP

# Database
DATABASE_URL="CONNECTION_STRING"
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"url": "https://cdn.jsdelivr.net/npm/tsup/schema.json",
"fileMatch": ["package.json", "tsup.config.json"]
}
]
],
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
}
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ npm install

Change `.env.template` to `.env`

**Connect Prisma ORM to the database**

```bash
npx prisma migrate dev --name init
```

**Running the project**

Development mode:
Expand Down
Loading

0 comments on commit 2fb1c30

Please sign in to comment.