# cd into project root
$ yarn
# to use mysql
$ yarn add mysql2
# to use postgresql
$ yarn add pg pg-hstore
# start the api
$ yarn start
- api - for controllers, models, services, etc.
- config - for routes, database, etc.
- db - this is only a dir for the sqlite db, the default for NODE_ENV development
- test - using Jest
yarn dev
- simply start the server withou a watcheryarn create-sqlite-db
- creates the sqlite databaseyarn drop-sqlite-db
- drops ONLY the sqlite databaseyarn lint
- linting with eslintyarn nodemon
- same as `npm start``yarn prepush
- a hook wich runs before pushing to a repository, runsnpm test
andnpm run dropDB
pretest
- runs linting beforenpm test
test-ci
- only runs tests, nothing in pretest, nothing in posttest, for better use with ci tools