- Postgres 9.5 or later
- Node 7.6.0 or later
- Run:
npm i
- Create a postgres database named 'fampi-dev' with the citext extension enabled.
- Create a .env file in the root with the database settings:
DB_USER=
DB_PASS=
DB_HOST=localhost
DB_PORT=5433
DB_NAME=fampi-dev
- Run:
npm run migrate migrate
- Run:
npm start
Uses pure sql files, courtesy of sql-migrations, invoke with:
npm run migrate migrate
# runs all migrations not allready in the databasenpm run migrate rollback
# rollbacks the latest migrationnpm run migrate create <migration_name>
# generate new migration sql files in the ./migrations folder.