Skip to content

CoachKidd/MTC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status js-standard-style Codacy Badge CircleCI

Multiplication Tables Check (MTC) Project

Requires Docker 17.05 or later.

Docker Compose

There are 3 docker files...

docker-compose.yml

The default, which runs just SQL Server (main data store) and MongoDB (express session store) Stand up the database containers with: docker-compose up

docker-compose.admin-test.yml and docker-compose.pupil-test.yml

Runs SQL Server, MongoDB, all web applications, and the pupil and admin test suites as separate containers. This compose file depends on docker-compose.yml and should not be run directly. To stand up the tests, app and db containers run either ./run-compose-admin-test-suite.sh or ./run-compose-pupil-test-suite.sh

run-compose-admin-test-suite.sh

In order to run the admin test containers to completion, and exit with a non-zero exit code during CI, execute the run-compose-admin-test-suite.sh bash script, which will monitor the compose containers for non-zero exit codes (typically generated by the test suites when they fail), tear down all containers and exit appropriately.

run-compose-pupil-test-suite.sh

In order to run the pupil test containers to completion, and exit with a non-zero exit code during CI, execute the run-compose-pupil-test-suite.sh bash script, which will monitor the compose containers for non-zero exit codes (typically generated by the test suites when they fail), tear down all containers and exit appropriately.

Once the full compose stack is up and running, you can browse to....

The MTC solution consists of the following projects...

  • Pupil Check Application (/pupil-spa/) Angular SPA
  • Check Administration Application (/admin/) Express MVC application
  • Electron Container for Pupil Check Application (/electron/) Electron shell for Pupil Check Application (Obsolete)

See each projects readme for app specifics.

Building Docker Images

to build an individual docker image, navigate to the relevant app folder and run...

docker build -t <image name> .

where <image-name> is a friendly name that allows you to easily identify the image.

Markdown Cheatsheet

Using microservices

To make the pupil-spa use the auth microservice instead of the API in admin, change the AUTH_URL environment variable in pupil-spa/Dockerfile and the docker-compose.*.yml files relevant for pupil-spa

Enabling AMQP 1.0 in Rabbit MQ

In order to use the npm package amqp10 with Rabbit MQ the rabbitmq_amqp1_0 plugin must be enabled within Rabbit MQ.

This is achieved by mapping the local rabbit_enabled_plugins file to etc/rabbitmq/ within the container.

About

Multiplication Tables

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.2%
  • Ruby 4.6%
  • HTML 4.5%
  • TypeScript 3.6%
  • CSS 3.3%
  • Gherkin 1.3%
  • Other 0.5%