Skip to content

JsmithKU/LineHopper

Repository files navigation

Kutztown CSC CapStone Project 2023

LineHopper is a crowd source application used to collect data submitted by users to track how busy and clean each Dinning Hall is. We then display this data to the user so they can route their short time between classes in order to get food quickly or have a place to sit that is not dirty.

Dev Environment

Project Set-up

  1. Clone Repo
  • cd <Path-to-Repo> 2a. RUN docker-compose pull db
    2b. Run docker-compose up -d
  1. While DB container is running copy over the dump.sql and run it (Only needs to be done when recreating volume)
  • Get the db docker container from docker desktop or docker ps and copy down the container id from the running db container
  • docker cp ./db/databasetemplate.sql <dockercontainerid>:/dump.sql
  • docker exec -it db psql -U postgres -f ./dump.sql
  • testing docker sql with
  • docker exec -it db psql -U postgres
  • to see all schemas: SELECT schema_name FROM information_schema.schemata;
  • to see cron jobs SELECT * from cron.job
  1. When working on the project and loading changes within your environment currently the process is:
  • Save changes to files
  • Run docker-compose up -d --build client --build api