This repository contains the final project for the Databases I course. This project makes use of Docker in order to complete the initial setup and to get you setup as quickly as possible.
Note that these were the instructions for the server setup at the start of the project. A lot has changed and these may be outdated.
- Download Docker.
- Pull this repository to your system.
- Create a file named
php.iniinside of thesitesdirectory.<YOUR USERNAME>and<YOUR PASSWORD>must be the same as in thedocker-compose.ymlfile. Thephp.inifile will contain the following
[php]
register_globals = true
track_errors = true
include_path = "/var/www/sites/public"
[database]
driver = pgsql
host = postgresql
port = 5432
schema = test
db_name = postgres
username = <YOUR USERNAME>
password = <YOUR PASSWORD>
You will also need to create a file in the root directory (same as docker-compose.yaml) named .env. This file contains the database password and will look like the following
POSTGRES_USER=<YOUR USERNAME>
POSTGRES_PASSWORD=<YOUR PASSWORD>
- Type
docker-compose upto start the server. - Type
docker-compose downto stop the server.
Navigate to localhost:8080 to view the web application.
