Oncology PT
Table of Contents
About The Project
The Oncology PT .
Getting Started
This project is powered by the laravel framework.
Prerequisites
- Install docker and docker-compose on your local machine.
Installation
-
clone project
git clone https://github.com/GOK-NPHL/oncology_pt.git
-
cd
cd oncology_pt/
Edit the the .evn file and update with needed parameters like your ODK username and password, database connection, and set the SESSION_DOMAIN to the relevant server domain.
Check the defaults on the docker files for the db and nginx ports.
-
build project
docker-compose build
-
run project
docker-compose up -d
If you get the error
Version in "./docker-compose.yml" is unsupported
Uninstall your docker & docker compose installation and update to the latest.
eg on Ubuntu:
sudo apt unistall docker-compose
Once the containers are up and running, you can check status by running docker container list, you need to finalize set up.
Run below to get into the app continer session:
sudo docker-compose exec oncologypt_app bash
running as root
sudo docker-compose exec -u 0 oncologypt_app bash
you could add -u 0 get into the sudo session in the container.
Next install required dependencies for the application as below:
npm install && composer install
Once that is done, we set up the database with initial data.
php artisan migrate
and
php artisan db:seed
finally, we compile our fron end resources for prodcution:
npm run prod
Defaults.
Database, web server and PHP settings are done from the docker files.
License
Distributed under the GPL-3.0 License. See LICENSE
for more information.