Skip to content
/ fampi.old Public

work in progress - learning js/node with a goal in mind

License

Notifications You must be signed in to change notification settings

Lani/fampi.old

Repository files navigation

fampi

Requirements

  • Postgres 9.5 or later
  • Node 7.6.0 or later

Setup

  1. Run: npm i
  2. Create a postgres database named 'fampi-dev' with the citext extension enabled.
  3. 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
  1. Run: npm run migrate migrate
  2. Run: npm start

Migrations

Uses pure sql files, courtesy of sql-migrations, invoke with:

  • npm run migrate migrate # runs all migrations not allready in the database
  • npm run migrate rollback # rollbacks the latest migration
  • npm run migrate create <migration_name> # generate new migration sql files in the ./migrations folder.

About

work in progress - learning js/node with a goal in mind

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published