-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
▲ feat: add prisma and environements to the template
- Loading branch information
Pape Mayel Diagne THIAM
authored and
Pape Mayel Diagne THIAM
committed
May 24, 2024
1 parent
f335938
commit 24a4765
Showing
11 changed files
with
571 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,8 @@ prisma/migrations | |
#env | ||
.env | ||
#swagger docs | ||
./public | ||
public | ||
#vscode | ||
.vscode | ||
#db persistance | ||
pg_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: "3.5" | ||
services: | ||
|
||
pgdb: | ||
image: postgres:16 | ||
container_name: db-senwata | ||
hostname: postgres_db | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=postgres | ||
- POSTGRES_DB=senwata | ||
- POSTGRES_HOST_AUTH_METHOD=trust | ||
expose: | ||
- 5432 | ||
ports: | ||
- 5435:5432/tcp | ||
volumes: | ||
- "./pg_db:/var/lib/postgresql/data" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
NODE_ENV=development | ||
PORT=3000 | ||
API_URL=http://localhost:3000 | ||
|
||
# This was inserted by `prisma init`: | ||
# Environment variables declared in this file are automatically made available to Prisma. | ||
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema | ||
|
||
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. | ||
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings | ||
|
||
DATABASE_URL="postgresql://postgres:postgres@localhost:5435/senwata" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
NODE_ENV=production | ||
PORT=3000 | ||
API_URL=http://localhost:3000 | ||
|
||
# This was inserted by `prisma init`: | ||
# Environment variables declared in this file are automatically made available to Prisma. | ||
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema | ||
|
||
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. | ||
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings | ||
|
||
DATABASE_URL="postgresql://postgres:postgres@localhost:5435/senwata" |
Oops, something went wrong.