Project Next is the new website for Sanctus Omega Broderskab.
For getting started please refer to our Getting Started Guide.
Have the docker deamon running, then run:
npm run docker:devor run
docker compose -f docker-compose.dev.yml up --buildTo setup the development container see this guide.
If you want to have access to the container outside vscode, use the command bellow.
docker exec -it -w /workspaces/projectNext pn-dev /bin/bashTo remigrate the db, just rerun the prisma container To regenerate the client-libary from the schema file run:
npx prisma generatein the projectnext container
Seeding happens automaticly in devlopment. If you want to reseed the database without restarting the docker container, run the following command. This will remove all data from the database, and then seed all the data afterwards.
npm run docker:seedSince we are using volumes in dev, the dev container should keep itself up to date with your working directory. But you will need to reinstall packages manually in projectnext upon changing package.json. Run:
npm ciinside projectnext-container
To set up for production run this command. The command will not change the database, therefore some sort of seeding is needed such as dobbelOmega.
docker compose -f docker-compose.prod.yml up --build -dTo load data from Omegaweb-basic run dobbelOmega from within a projectnext container using the command below. Keep in mind that the command will delete all the data in the database.
docker compose -f docker-compose.prod.yml exec projectnext npm run dobbelOmega:runTo lint the project run
npm run lintTo auto-fix linting errors run
npm run lint -- --fixTo migrate the data from omegaweb-basic, run the following command inside the projectnext container.
npm run dobbelOmega:runIf you are connected to our test database on openStack, make sure to be on the ntnu network to be able to connect.