Skip to content

Latest commit

 

History

History
67 lines (39 loc) · 1.2 KB

DEVELOPMENT.md

File metadata and controls

67 lines (39 loc) · 1.2 KB

DEVELOPMENT

CircleCI

Dev Environment Setup

Install and run Node v8.1.2

Setup and run mehserve

echo 3233 > ~/.mehserve/curriculum.learnersguild
mehserve run

Setup and run IDM

Setup and run Echo

Setup repo

First, fork and clone the curriculum repository.

Install Node Packages

npm install

Creating your .env file

create a .env file like this:

PORT=3233
DATABASE_URL=postgres://localhost:5432/lg-curriculum
IDM_BASE_URL=http://idm.learnersguild.dev
ECHO_BASE_URL=http://echo.learnersguild.dev
JWT_PUBLIC_KEY="SEE IDM SETUP"
LOG_SQL_QUERIES=1

NOTE: you can set DISABLE_IDM=1 to disable authentication to IDM

Setup the Postgresql Database

createdb lg-curriculum
npm run db:migrate

Start the server in development mode

npm run dev

Continuous Integration

https://circleci.com/gh/GuildCrafts/curriculum