This repository contains the Welcome Track website project.
In order to run this project locally you will have to have the following tools installed on your system:
- Node.Js
- Docker
- Docker compose
- Or Docker Desktop which will install the above two tools for you
Before running the project here are the commands you should run in your terminal:
# Install node modules
npm ci
# Run the database in the background
npm run run-db
# Run any migrations that have not been synced to your database instance
npm run migration:deploy
# Run the dev server
npm run dev
# This will also run the database in the background if it is not running already
If you want to make changes to the database structure, you can do so by editing the schema.prisma file.
You can find a reference of the schema language here.
After making the changes to the schema, you can create a migration for the changes by running the following command:
npm run migration:deploy
# This will create the migration file and run any pending migrations including the newly created one
npm run migration:create
# This will only create the migration file without running any migrations