Skip to content

Commit 75cc5ca

Browse files
committed
Create customer, login and get customers api with JWT token authentication
1 parent 14689ed commit 75cc5ca

14 files changed

+1060
-104
lines changed

.env.example

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
PORT=5000
2+
JWT_SECRET_KEY=5OQ1ZE9FJiP0d3PKTnOT
23

34
# Database configuration
45
DATABASE_HOST=postgres

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ npx tsc --init
1212
### Dependencies
1313

1414
```
15-
npm install fastify fastify-zod zod zod-to-json-schema fastify-swagger fastify-jwt @prisma/client
15+
npm install fastify fastify-zod zod zod-to-json-schema fastify-swagger @fastify/jwt @prisma/client bcrypt
1616
```
1717

1818
### Dev Dependencies
1919

2020
```
21-
npm install -D ts-node ts-node-dev typescript @types/node dotenv nodemon
21+
npm install -D ts-node ts-node-dev typescript @types/node dotenv nodemon @types/bcrypt
2222
```
2323

2424
### Prisma Initialization

0 commit comments

Comments
 (0)