Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
/ GLO-2005-Repub Public archive

Semester project for the relational databases class.

Notifications You must be signed in to change notification settings

cduchesne1/GLO-2005-Repub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLO-2005

Semester project for the relational databses class.

Frontend

To run the app:

npm run serve

Backend

  • Python 3.9

Create a virtual environment

Install dependencies from requirements.txt

To run the app (Make sure the database is up and running):

export FLASK_APP=hello
flask run

Database

  • Docker
  • Docker Compose

To setup the database:

** Make sure that mysql is not running on port 3306 before starting the container **

  1. Open a terminal in the database folder

  2. Run the following command:

docker compose up

To stop the database, you can exit in the terminal with CTRL+C and run the following command:

docker compose down

Git Server

  • Docker
  • Docker Compose

To setup the server for the first time:

  1. Open a terminal in the gitserver folder

  2. Run the following command:

docker compose build
docker compose up -d
  1. Go in the backend folder and in the util folder.

  2. Run the getContainerId python script to get the container id of the git server (make sure it is the only one running)

  3. Copy the id into the .env file. The file should look like this:

GITSERVER_CONTAINER=thecontainerid
  1. Run the populateServer python script to populate the repositories.

  2. Steps 3 to 6 are only for the first time. You can start back the container manually or with the docker compose up -d after.

To stop the server, you can run the command:

docker compose down

Clone a repository

To clone a repository run the following command:

git clone http://localhost:8000/username/repo.git

About

Semester project for the relational databases class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published