- Node 6.9 LTS -- n recommended
- Yarn
- Postgres -- Postgres.app recommended
$ yarn
- Set up Postgres
$ createdb qdb
$ psql qdb
> CREATE ROLE root WITH LOGIN PASSWORD 'playbooks'
;- Exit
- Provision and seed database
yarn run db:migrate
yarn run db:seed
- Create a
.env
file and get keys - Start application
These are all found in package.json
scripts. Run them with yarn run <script name>
Builds and start the production app.
- codebase has
async/await
and some future-ES features and need to transpile to the Node LTS target - uses forever to run the app
- uses
NODE_ENV
,DEBUG
,WEB_CONCURRENCY
, andPORT
from the environment
Starts the development app, which is transpiled on the fly with babel-node
- Uses Nodemon for live reloading app
- uses
NODE_ENV
,DEBUG
,WEB_CONCURRENCY
, andPORT
frompackage.json
Cleans the prod folder
Cleans and runs build:transpile
Build step for transpiled app
Runs sql to reset the db by deleting the schema and recreating it
Runs all knex migrations
Wraps knex to create migration and seed files according to the knexfile.js. Migration creation gives it a timestamp to organize migrations sequentially.
Runs db:destroy
and db:migrate
Runs the seed task
Runs eslint on the app
folder
Theoretically fixes small linting issues according to eslint
In theory this will allow us to run tests one day... in theory. sigh
- Heroku setup
- Heroku deploy instructions
- New customer creation
- Write up stuff for codemods (
jscodeshift -t codemods/transforms/requires-to-imports.js app/**/*.js
)