Commit c8ba05fb authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-53 Added files for webapp and Ansible.

parent 80cc7d8a
# ~okeanos Lambda on Demand backend service
## Description
In this directory you can find the code for the ~okeanos-LoD backend service. It
is implemented as a Django project and currently contains `backend` application.
The backend can be deployed using the ansible code inside `ansible/` directory.
python needs to be installed.
# ~okeanos Lambda on Demand backend service Ansible
Doesn't use virtual env.
## Description
In this directory you can find the Ansible code that deployes the backend service vm
used by ~okeanos Lambda on Demand project.
## Prerequisites
To use this code you need:
1. A vm running Debian OS.
2. The vm should have a public ip.
3. Python should be installed on the vm.
## Usage
To use this code, run
`ansible-playbook -v playbooks/setup.yml -i <inventory>`
The vms should be under `service-vms` group in the inventory file.
## Results
This Ansible code will install and configure Apache server, Django and PostgreSQL. It will also clone ~okeanos-LoD
repository from Github and set Apache server to serve ~okeanos-LoD webapp.
To check that everything is installed correctly after running the Ansible code, open a web browser and
enter your vm's public ip on the address bar. You should see the following text:
It worked!
Congratulations on your first Django-powered page.
Of course, you haven't actually done any work yet. Next, start your first app by running python startapp [app_label].
You're seeing this message because you have DEBUG = True in your Django settings file and you haven't configured any URLs. Get to work!
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment