Instructions can be found here: https://www.postgresql.org/download/macosx/ Postico is also a great GUI to interact with data
git clone [some_repo]
cd [some_dir]
yarn
See example.env
, duplicate the file, and save as .env
. Update variables as needed. Do not change DB_URL or TEST_DB_URL.
Be sure Postgres is running.
And then either.
yarn db:setup
or
yarn db:create
yarn db:migrate
yarn db:seed
yarn dev
Roll back one migration.
yarn db:rollback
Drop the database/
yarn db:drop
Drop db, create db, run migrations, seed db.
yarn db:reset
yarn docs:server
then in a new tab
yarn docs
yarn test