- Docker
- Node.js (version 20+)
- Create a local copy of this Git repository (clone)
- Copy the file
.env.dev
to.env
and populate it with your data (cp .env.dev .env
)
- Run
npm install
- Run
docker compose --env-file ./.env -f docker/docker-compose.dev.yml up -d
to start PostgreSQL and Redis - Run
npm run database:setup
to initialize the database schema - Run
git config core.hooksPath ./git-hooks/
to setup git hooks - Start the server and the client (see Development)
- Open https://localhost:4200/en in your browser
- Create a new user via Get Started (this first user will get the role
ADMIN
)
Run npm run watch:server
and click Debug API in Visual Studio Code
Run npm run start:server
Run npm run start:client
and open https://localhost:4200/en in your browser
Run npm run start:storybook
With the following command you can keep your database schema in sync:
npm run database:push
Run npm test
New functionality can be enabled using a feature flag switch from the user settings.
Remove permission in UserService
using without()
Use @if (user?.settings?.isExperimentalFeatures) {}
in HTML template
git rebase -i --autosquash main
- Run
npx npm-check-updates --upgrade --target "minor" --filter "/@angular.*/"
- Run
npx nx migrate latest
- Make sure
package.json
changes make sense and then runnpm install
- Run
npx nx migrate --run-migrations
Run npm run database:gui
Run npm run database:push
https://www.prisma.io/docs/concepts/components/prisma-migrate/db-push
Run npm run prisma migrate dev --name added_job_title
https://www.prisma.io/docs/concepts/components/prisma-migrate#getting-started-with-prisma-migrate