TAS is an Adonisjs project built to dynamically allocate academics to units.
npm i -g @adonisjs/cli(Make sure that you are in the tas directory)
npm install dependencies https://docs.docker.com/get-docker/ https://docs.docker.com/compose/install/
docker-compose up -ddocker-compose psadonis migration:runadonis serve --devInstallation complete - http://localhost:3000/
adonis migration:refreshdocker-compose downThe Teacher Allocation System project contains a Docker Compose script to automate the deployment of a production environment.
For this environment the .env file will need to be created in the tas directory and the secrets correctly filled out.
There are situations, such as development where you will want to run the database but not the production container because it is being run locally on the host.
# Starting the database
docker-compose up -d
# Stopping the database
docker-compose downrunning both containers makes use of the profiles feature of Docker Compose. The --build argument forces a rebuild of the containers, this can be useful when you are making changes to the application but is not strictly required.
# Run the database and application
docker-compose --profile production up -d --build
# Stop the containers
docker-compose down