Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Latest commit

 

History

History
63 lines (41 loc) · 1.07 KB

README.md

File metadata and controls

63 lines (41 loc) · 1.07 KB

Course Mapper

Run via docker-compose

To run the default stack using images from Docker Hub:

docker-compose up

Request e.g. http://localhost:3000/accounts/createAdmin to create an initial account "admin". For the (randomly generated) password, check stdout.

Run on Kubernetes

Prepare ./kustomization.yaml (include ./k8s as base, configure NS, labels, etc.) and deploy:

kubectl apply -k .

Check that all resources are deployed and the deployment are ready:

kubectl get -k .

Request /accounts/createAdmin to create an initial account "admin". For the (randomly generated) password, check the logs, e.g.:

kubectl logs \
  --selector app=course-mapper,component=web \
  --namespace default

Development setup

Requirements

  1. MongoDB (installed and running)
  2. NodeJS and npm (installed)

Usage

# Install tools globally
sudo npm install -g bower gulp grunt nodemon

# Install JS modules
npm install
bower install

# Build front-end JS
grunt

# Run Mocha tests
npm test

# Start web app
./bin/www
or nodemon