Service to help with scheduling/feedback for Coaches/Mentees
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
configuration
database
events
lib/statistics/calculate
middleware
public
routes
tests
views
.gitignore
Procfile
README.md
app.js
package.json

README.md

coachQ

Installation

Install dependencies

npm i

Setup environment

Check that your shell's NODE_ENV variable is set to development

echo $NODE_ENV

If this command prints development, you're all set to move to the next section.

If you need to edit your NODE_ENV:

atom ~/.zshrc for zshell or atom ~/.bashrc for bash and add the entry:

export NODE_ENV=development

Create your .env.development and .env.test files

Run the following commands on your terminal:

touch configuration/.env.development
touch configuration/.env.test
echo DATABASE_URL=postgres://`whoami`@localhost:5432/coach-queue-development >> configuration/.env.development``
echo DATABASE_URL=postgres://`whoami`@localhost:5432/coach-queue-test >> configuration/.env.test

Also add the following to your .env.development file for IDM authentication*

BASE_URL="http://coach-queue.learnersguild.dev"
IDM_BASE_URL="http://idm.learnersguild.dev"
JWT_PUBLIC_KEY="<same JWT_PUBLIC_KEY that is in your idm/.env.development>"

Setup Database

Install PostgreSQL

brew update

brew doctor

brew install postgresql

createdb coach-queue-test

createdb coach-queue-development

Migrations

Run latest migrations

npm run migrate:latest

Make a new migration

npm run migrate:make

Rollback to previous migration

npm run migrate:rollback

Run Tests

npm test


Run Coach Queue in development environment

Install IDM. Can be challenging.

mehserve run

Then, in a new shell, inside /idm,

nvm 5.6
npm start

Log into IDM at idm.learnersguild.dev

Then, in a new shell, inside /coach-queue,

npm run start:dev (uses nodemon)