Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.14 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.14 KB

Trivago Authentication - API

Live: https://trivago.gangoo.eu

API: https://api-trivago.gangoo.eu

Tech Stack:

Express.js Prisma Postgres JWT

.env file setup

  1. Start by making a copy of .env.example in the same directory and rename it to just .env
  2. For instance, you might have variables like API_KEY, SECRET_KEY, or DATABASE_URL. Ensure that you provide the correct values for these variables to avoid any issues later.

Project setup

Install dependencies

  npm install

Start server

  npm start

DB setup

Generate Prisma Client

  npx prisma generate

Create and apply a new migration

  npx prisma migrate dev

Open visual editor for the data in your database

  npx prisma studio