This Common Knowledge (CK) Board is the latest rebuild of the ENCORE Lab's collaborative canvas for guiding collective inquiry and active learning activities.
- Node: https://nodejs.org/
- Use the LTS versions. v16 works, v17 has some compatabily issues
- Angular:
npm install -g @angular/cli
$ git clone https://github.com/encorelab/ck-board.gitInstall Frontend dependencies:
$ cd frontend
$ npm installInstall Backend dependencies:
$ cd backend
$ npm installCreate a .env file inside the /backend directory (touch .env in your terminal or manually create file using your IDE)
Add the following content into the .env file and replace with your own credentials:
DB_USER=[Mongoose DB Username]
DB_PASSWORD=[Mongoose DB Password]
DB_URL=[Mongoose DB URL]
DB_NAME=[Mongoose DB Name]
JWT_SECRET=[JWT Secret Token]
PORT=8001
SCORE SSO
If also running SCORE for Single Sign-On (SSO), add the following additional content into the .env file and replace with your own credentials:
SCORE_SSO_ENDPOINT=/sso/ckboard
SCORE_SSO_SECRET= [any value that matches ck_board_sso_secret on SCORE]
SCORE_LOGOUT_ENDPOINT=/api/logout
For the SCORE development environment, add the following values to application-dockerdev.properties
ck_board_url=http://localhost:4201
ck_board_sso_secret_key=[any value that matches SCORE_SSO_SECRET on CK Board]
Start server first, then start client app once the server has successfully started:
$ cd backend # Go into backend folder if not already
$ npm run dev # Start server
# … Open a new terminal tab to run client app
$ cd frontend # Go into frontend folder
$ ng serve --port 4201 # Run Angular app; Will start application on http://localhost:4201/Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.