Visit the project website for more info.
Prepare your local development environment using the following steps:
- If you need to set or overwrite any environment variables, they should be declared in a file named
.envin the root of the togethernet directory. - Restart your app any time an environment variable is changed
- Install Postgress.app. Open the application to start your postgres server.
- Create a development database
- set the
PG_DBenvironment variable to the name of the database you just created - set the
PG_USERandPG_PASSWORDenvironment variables to the credentials of a user that has access to the database you just created - set up your database by running the migrations in
src/db. The files are named for the order the migrations should be run. A file named with incrementing numbers represents a migration you would run to move your database forward. For example, running migration1-2.sqlshould be run first, with your database going from state 1 to state 2. A file named with the numbers in reverse represents a migration to roll back the state of your database. For example,2-1.sqlwould revert the state of your database from state 2 to state 1.
- Install Yarn. If you use the homebrew package manager, you can install with
brew install yarn. - Run
yarn installfrom the root togethernet directory.
- Start the project with
yarn start. View the project at http://localhost:3000/.