Skip to content

Commit 0a91271

Browse files
committed
add: api implementation for product routes
1 parent 6f7a6ea commit 0a91271

15 files changed

+774
-22
lines changed

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Environment variables declared in this file are automatically made available to Prisma.
2+
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
3+
4+
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
5+
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
6+
7+
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
services:
2+
db:
3+
image: postgres:16
4+
ports:
5+
- 5432:5432
6+
volumes:
7+
- db:\data\db
8+
environment:
9+
POSTGRES_USER: postgres
10+
POSTGRES_PASSWORD: root
11+
POSTGRES_DB: store-zero
12+
13+
volumes:
14+
db:

0 commit comments

Comments
 (0)