Skip to content

GUC SwitchHub automates the hassle of tutorial group switching between students at the GUC.

Notifications You must be signed in to change notification settings

amgadramses/GUC-SwitchHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GUC-SwitchHub

GUC SwitchHub automates the hassle of tutorial group switching between students at the GUC.

Instructions to run the website

  1. Make sure that Docker is installed and started on your machine.

  2. Make sure that you have a working internet connection.

  3. Navigate to the project folder using the terminal.

  4. Use docker-compose up -d --build command to start the website and all the accompained services after adding the config.json file (Details below).

Command Flags:
-d: used to run the command in the daemon mode.
--build: used to ensure that the running version will be the latest build.

  1. Use cat database.sql | docker-compose exec -T db psql -U root GUCSwitchHubDB command to reflect changes from the database.sql file to the GUCSwitchHubDB

Command Flags:
-U: dbUser
GUCSwitcHubDB: The dbName

  1. Do another docker-compose up -d --build to ensure that everything is running as expected.

Config Files

You are required to create a JSON config file, named config.json, place it in the project directory on the same level as the main.go file.

An example of the config.json file is provided below:

{
    "dbHost": "exampleHost",
    "dbUser": "exampleUser",
    "dbPassword": "examplePassword",
    "dbName": "exampleDbName"
}

Instructions to run govendor:

  1. go get -u github.com/kardianos/govendor (If it is not installed)
  2. Inside the project directory run the govendor init command to create the vendor folder and vendor.json file
  3. run govendor add +e command to add the dependencies to the vendor.json file.

About

GUC SwitchHub automates the hassle of tutorial group switching between students at the GUC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published