From: Ben Beltran Date: Mon, 28 Nov 2016 08:27:08 +0000 (-0600) Subject: Add some instructions to the readme X-Git-Url: https://git.r.bdr.sh/rbdr/lgtm/commitdiff_plain/6b98202fc8ea9c5811134cad592f11b6b89d008a?ds=sidebyside;hp=f5efb2b5de23844e6317a6f636abb75955e60c40 Add some instructions to the readme --- diff --git a/README.md b/README.md index 3f1f2aa..40a517b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,25 @@ # lgtm looks good to me + +## What you'll need + +You should have node and a mysql database where we can create and read a table. + +## Configuring the app + +The app is configured using environment variables. You can check +`config/config.js` to see the expected keys. Most values are optional and +the defaults should work fine, you will have to provide three values for +the database connection as no defaults are provided: + +* `LGTM_MYSQL_USER` +* `LGTM_MYSQL_PASSWORD` +* `LGTM_MYSQL_DATABASE` + +An easy way to configure this app for local development is by using a `.env` +file in the project root. An example one is provided in `env.dist`, you can +copy that file and update with your own defaults. + +## Setting Up the Database + +Run `npm run setup_database`. This will create the table.