Skip to content

MajaBru/Assignment2-Cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment2-Cloud

This project is a simple-ish website inspired by Reddit-like forum sites. Building on OpenStack (Chameleon Cloud) using Docker and DockerCompose to an extent.

How to setup locally

Without dockerizing the application, you can setup the application locally:

  • Clone the repo

  • in terminal run "pip install -r requirements.txt"

  • Add your connection to your local SQL server f.ex: "root@localhost/fakeredditdb" or "root:root@localhost/fakeredditdb" if you have a password. Found on this line in app.py: "app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root@localhost/fakeredditdb'"

  • Copy the sql schema from /database/init.db.

  • Open up the sql server locally on your machine, and run the schema as a query.

  • CD to ./app.

  • Run python app.py.

  • Open the flask in the browser.

  • Register a new user and login.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published