https://github.com/balinux/ecommerce-node-ts
learn typescritp nodejs
https://github.com/balinux/ecommerce-node-ts
Last synced: 17 days ago
JSON representation
learn typescritp nodejs
- Host: GitHub
- URL: https://github.com/balinux/ecommerce-node-ts
- Owner: balinux
- Created: 2024-08-24T02:17:57.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-04T07:40:08.000Z (10 months ago)
- Last Synced: 2025-05-31T22:08:21.109Z (about 1 month ago)
- Language: TypeScript
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Learn typescript app
## initial app
```bash
npm init -y
npm i typescript --save-dev
npx tsc --init
npm i @types/node --save-dev
npm i @types/express --save-dev
```## initialising prisma
```bash
npm i prisma @prisma/client
npx prisma init```
## migrate prisma model
````bash
╰─ npx prisma migrate dev --name CreateUsersTable## user signup
```bash
npm install bcrypt jsonwebtoken
npm i --save-dev @types/bcrypt
````## login feature
```bash
npm i --save-dev @types/jsonwebtoken
``````bash
# test login
http -a email:password POST http://localhost:3000/api/auth/login [email protected] password=rio123
```