GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DevOpsBootcamp/systemview: example webapp project for the OSL DevOps Bootcamp

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
static
static
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
__init__.py
__init__.py
 
 
create_tables.py
create_tables.py
 
 
requirements.txt
requirements.txt
 
 
systemview.py
systemview.py
 
 

Repository files navigation

systemview

Example webapp project for the OSL DevOps Bootcamp

This is a small application using the Flask framework.

Installation

Do this in your VM! To get into your VM, use vagrant ssh in the correct repo.

$ cd

# Installs the program virtualenv
$ sudo yum -y install python-virtualenv* 

#Create a new virtual environment called 'systemview_venv'
$ virtualenv ~/systemview_venv

#Activate the virtualenv, or "turn it on".  This will put you inside of the virtualenv
$ source ~/systemview_venv/bin/activate

#Clone the repository
$ git clone https://github.com/DevOpsBootcamp/systemview

#Go to the applications directory
$ cd systemview

#Install the packages that systemview needs.  The magically file requirements.txt will tell 
#pip what packages are needed and have it download them. 
$ pip install -r requirements.txt

#Execute scripte to create database tables
$ python create_tables.py

Using the app

Once everything is installed and the database is set up correctly:

# enter the virtual environment
$ source ~/systemview_venv/bin/activate

#Change directories to the web application
$ cd ~/systemview

#Make sure that you are on the $x branch.  The branch you are on will have an asterisk next to it.
$ git branch                         

#Start the app!  
$ python systemview.py -i 0.0.0.0 -d # start the webapp

In your web browser, go to http://0.0.0.0:5000

What the above command does is tells python to execute the code in systemview.py. The '-i' is a custom argument that we pass to the file, telling it to listen to the IP address 0.0.0.0 0.0.0.0 means all ip addresses on the local machine <http://serverfault.com/questions/78048/whats-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1> The '-d' is another custom argument to turn debugging on, so that if something breaks we can figure out where it's breaking a little bit easier.

About

example webapp project for the OSL DevOps Bootcamp

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

1 star

Watchers

4 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.