Skip to content
UConn CSE SDP Project 16 : Smart Hotels
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
lights
mocks
nginx-ssl
nginx
postgres
web
.gitignore
README.md
certbot-request.sh
docker-compose.prod-ssl.yml
docker-compose.prod.yml
docker-compose.test.yml
docker-compose.yml

README.md

Smart Hotels

UConn CSE 2018 SDP Team 16 : Smart Hotels

Prerequisites

  • You will need both docker and docker-compose installed.

Usage

# In the project directory...

# Build The image
docker-compose build

# Bring the container up
docker-compose up

# You can also start them in the background:
docker-compose start

Production usage

docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml create
docker-compose -f docker-compose.prod.yml start

Connecting to the docker container

psql -U docker -d docker -h localhost -p 5432

To see the database or a specific one, or working with the tables

\? will list all the commands

\q will quit

\d will list tables

\d <tablename> will show the columns and data types in a table

SELECT * FROM <tablename>; will show the actual table, pretty much the basic sql statement

psql -U docker -d docker -h localhost -p 5432 -f postgres\drop_schema.sql to drop tables and start from scratch

psql -U docker -d docker -h localhost -p 5432 -f postgres\create_schema.sql to create all the tables

psql -U docker -d docker -h localhost -p 5432 -f postgres\insertTestData.sql to add the test data

password is docker

Contributors :

  • Rafal Bzeubik
  • Arun George
  • Rich Infante
  • Brian Matuszak
  • Kevin Schumitz
  • Christopher Skoczylas
You can’t perform that action at this time.