- Sentry error reporting
- Email notifications
- Machine learning categorize:
- Snack
- Post-workout
- Breakfast
- Lunch/Dinner
- Machine learning preference
- Use machine learning preference to generate combinations meal
- The domain knowyourmacros.com is registered on DYNDNS
- Richard Lucas registered the domain and has the username and password
- The api is deployed on heroku. The heroku app name is
- Richard Lucas instanciated the heroku app and has the username and password
The heroku app name is desolate-stream-17735
- The deployment method at the time of writing is the heroku-cli:
heroku push origin master
<a name="local-development />
Make sure you are using the node version specified in the package.json file (9.11.2
)
npm install
or yarn install
- Install PostgreSQL on your machine (version 9.5.14)
- Login to PostgreSQL
psql
- Create two databases:
kym
andkym_test
create database kym;
create database kym_test;
- Seed the database
npm run db:seed
- This will syncronize the Sequelize ORM with the database, create the tables, and add the base data
Install redis on your machine. I'm using redis-cli version 4.0.10
npm run start:dev
This will start a cluster of the app using the built in cluster
package. One worker for each core of your machine.
npm run test:server
- This should connect to the database
kym_test
- The test data is located in the
./test-data
directory
For now there is no minimum coverage threshhold, but eventually it should be brought up to 97% or 98% for all metrics.