Backend app for Visual Regression Tracker
- Install Node
18(LTS) - clone repo
- Update
.envandprisma/.env - Make sure Postgres is up and running, using
docker compose upin a separate terminal npm inpm run test- Create DB structure
npx prisma db push - Apply migrations
npx prisma migrate deploy npm run test:e2e- Seed initial data
npx prisma db seed npm run start:debug
- Generate keys here
- place in folder
/secretsnamedssl.certandssl.key
- Run
docker compose -f docker-compose.yml -f docker-compose.ldap.yml(see docker docs for multiple-compose-files - merge) - test the login with ldap and have a look at the logs
curl 'http://localhost:4200/users/login' \ -H 'accept: */*' \ -H 'accept-language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7,fr;q=0.6' \ -H 'content-type: application/json' \ --data-raw '{"email":"[email protected]","password":"password"}'