The website is a next.js application. To begin, install the required dependencies:
yarnTo run the development server:
yarn devTo build for production:
yarn buildWe use the sequelize package for ORM and database connection. To setup the database, make sure you have PostgreSQL installed and run:
yarn db:createThen to run migrations:
yarn db:migrateTo 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.jsMake sure you have created a test database (you only need to run this once):
NODE_ENV=test yarn db:createThen, run tests:
yarn testOr, to automatically watch and re-run tests:
yarn test-watch