NOTE: You need the Supabase token to use the lending app db locally
- Start a Postgres docker image:
docker run --name lending-db -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres
- Connect to local postgres instance:
psql -h localhost -p 5432 -U postgres -W
with a password ofpassword
CREATE DATABASE lending_db;
npx prisma migrate dev --name init
create db tables using prismanpx prisma db seed
to seed running db instance- Try sending a
POST http://localhost:3000/api/auth/login
request with the following onx-www-form-urlencoded
on postman to see if the backend works. You should receive anaccess_token
if it's working:- email: tpietzner1@cnbc.com
- password: password