Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/balinux/ecommerce-node-ts
learn typescritp nodejs
https://github.com/balinux/ecommerce-node-ts
Last synced: 2 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 (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-28T05:06:31.000Z (3 months ago)
- Last Synced: 2024-08-28T06:24:29.880Z (3 months ago)
- Language: TypeScript
- Size: 48.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
```