Skip to content

Commit f2e8b8e

Browse files
committed
setup:routes + controller + services upto working
1 parent 1a72375 commit f2e8b8e

30 files changed

+1690
-1593
lines changed

.env

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
# The following `prisma+postgres` URL is similar to the URL produced by running a local Prisma Postgres
8+
# server with the `prisma dev` CLI command, when not choosing any non-default ports or settings. The API key, unlike the
9+
# one found in a remote Prisma Postgres URL, does not contain any sensitive information.
10+
11+
DATABASE_URL="postgresql://postgres.uycuryvjjhznvsfumxre:[email protected]:5432/postgres"
12+
JWT_SECRET="roshanishacker"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
/dist
44
.git
55
.env.local
6+
7+
/src/generated/prisma

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@
1616
"author": "",
1717
"license": "ISC",
1818
"dependencies": {
19+
"@prisma/client": "6.17.0",
20+
"bcrypt": "^6.0.0",
1921
"bcryptjs": "^3.0.2",
2022
"cors": "^2.8.5",
2123
"dotenv": "^17.2.3",
2224
"express": "^5.1.0",
2325
"express-validator": "^7.2.1",
2426
"jsonwebtoken": "^9.0.2",
25-
"morgan": "^1.10.1"
27+
"morgan": "^1.10.1",
28+
"zod": "^4.1.12"
2629
},
2730
"devDependencies": {
2831
"@eslint/js": "^9.37.0",
32+
"@types/bcrypt": "^6.0.0",
2933
"@types/bcryptjs": "^3.0.0",
3034
"@types/cors": "^2.8.19",
3135
"@types/express": "^5.0.3",
@@ -37,6 +41,7 @@
3741
"eslint": "^9.37.0",
3842
"husky": "^9.1.7",
3943
"prettier": "3.6.2",
44+
"prisma": "^6.17.0",
4045
"ts-node-dev": "^2.0.0",
4146
"typescript": "^5.9.3",
4247
"typescript-eslint": "^8.46.0"

0 commit comments

Comments
 (0)