CCCTC Docs

CCCTC Docs

  • Help
Copyright (c) 2019. California Community Colleges Technology Center
Licensed under the MIT license.
A copy of this license may be found at https://opensource.org/licenses/mit-license.php

Steps required to build and run the the canvas-api service

Create a database:

docker-compose up -d canvas-db

Build the project

mvn clean install

Start the full stack (requires the local docker image you just built)

docker-compose up -d

NOTE: ubuntu users will first need to uncomment the following line from docker-compose.yml, due to differences in docker networking behavior

#- db.host=172.17.0.1

Test the application

curl -ik http://localhost:9100/info

Running Database locally (not in Docker)

#####Create the database in postgres:

psql --username=postgres
CREATE USER admin PASSWORD 'admin';
CREATE DATABASE canvaslms OWNER admin;
GRANT ALL ON DATABASE canvaslms TO admin;