Skip to content

Poobest/node-auth-prisma-postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. copy .env.example create .env (mv .env.example .env)
  2. start db: docker compose up -d
  3. install package: npm install
  4. npx prisma init
  5. npx prisma generate && npx prisma migrate dev --name init
  6. start : npm run dev

register : http://localhost:3000/api/auth/register {username, email, password} login : http://localhost:3000/api/auth/login {email, password} refresh token : http://localhost:3000/api/auth/lrefresh-token body {'refreshToken' : 'refreshToken from login'}

CRUD: Product : http://localhost:3000/api/products header Authorization Bearer JWT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors