The website is a next.js application. To begin, install the required dependencies:
yarn
To run the development server:
yarn dev
To build for production:
yarn build
We use the sequelize package for ORM and database connection. To setup the database, make sure you have PostgreSQL installed and run:
yarn db:create
Then to run migrations:
yarn db:migrate
To seed your database with a bunch of app data, first create the file .env
in the root of this project,
add the contents of the App.co .env file
from 1Password.
Then, run:
node scripts/import-spreadsheet.js
Make sure you have created a test database (you only need to run this once):
NODE_ENV=test yarn db:create
Then, run tests:
yarn test
Or, to automatically watch and re-run tests:
yarn test-watch