This repository contains the final project for the Databases I class, Development of a database application.
Please follow those instruction fto set up your local machine.
- Download xampp: https://www.apachefriends.org/download.html
- Find and open
php.iniin xampp file. For mac :application/xampp/etcand for windows it should be located atc:\xampp\php - Add those lines to the end in your
php.ini.- For mac:
extension=pgsql.so - For windows:
extension=php_pdo_pgsql.dllandextension=php_pgsql.dll
- For mac:
- Pull this repository to your machine and make sure to locate at xampp/htdocs
- Open postgres and create a new server. (
name= doesn't matter,hostname= localhost,port= 5433,username=postgres,password=admin)
make sure that underlogin/group Rolesat the bottompostgres, the connection limit is different than -1, it can be set to 10. - Create a database named
cojoDatabase. - Open query tool in cojoDatabase databse and execute the two files in
/Applications/XAMPP/xamppfiles/htdocs/Final-Database-Project/sql(windows:c:\xampp\htdocs\Final-Database-Project\sql): createSchema then createData.
- Open xampp and go to manage servers and start Apache web server.
- navigate to http://localhost/Final-Database-Project/ and you are all set :D
N.B: if you created a new folder named example to pull the repository to it, make sure to add the name of the folder in your URL (e.g: http://localhost/example/Final-Database-Project/)
