The steps below will walk you through setting up your own instance of the project.
To set up the development environment for this website, you'll need to install the following on your system:
.env.local
FileThe project uses environment variables, which are set by default in the .env file. To customize these variables (e.g., to use a custom database), create a .env.local
file at the root of the repository (cp .env .env.local
) and modify as needed.
For more detailed instructions on working with environment variables in Next.js, please consult the Next.js Environment Variables documentation.
Note: The .env.local
file is configured to be ignored by Git to prevent accidental exposure of sensitive information.
If you use nvm
, activate the desired Node version:
nvm install
Install Node modules:
pnpm install
Start database server:
docker-compose up
Download seed data and place it into the folder specified by SEED_DATA_PATH
in the .env file.
Apply migrations and ingest seed data:
pnpm db:seed
Start development server:
pnpm dev
✨ You can now access the app at http://localhost:3000
The seed command executes an ETL process, transforming model output files for PostgreSQL ingestion, and optimizing with indexes and foreign keys for efficiency. It is not recommended to run this process on a cloud database as it is resource-intensive and can be performed locally.
The recommended steps are:
pnpm db:dump
DATABASE_URL
in .env.local
with the remote database connection stringpnpm db:restore