Skip to content

DoStini/rest-app

Repository files navigation

Loading enviornment variables from .env

First, create a .env.local with the secrets you need:

  • AUTH0_CLIENT_ID
  • AUTH0_CLIENT_SECRET

Install dependencies

npm install

Run the development dependencies

docker-compose up

Migrate the database

npx primsa migrate dev

Seed the database

npx prisma db seed

Run the server

npm run dev

Testing the API

Login in the browser and find the Cookie header in the requests sent

Change the Cookie header in request "Get orders / Start auth"