Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

About

Service to help with scheduling/feedback for Coaches/Mentees

Resources

Releases

No releases published
You can’t perform that action at this time.