SSD course lab assignment Browse a random quote to give you encouragement and inspiration.
The button below greets you when you load the page
After pressing this button, you go to the page with the quote itself
Update page and receive one more quote!
Simple gif demo of our project (a bit bugged, don't judge us)
You need to have python3 installed. You can see how to install it on python official site Also you need to have pip installed. It reqularly installed automatically via python, but you can install Install pip the official way:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.8 get-pip.py
- Clone repository
- Go to root directory of the project
cd GetQuote
- Optional you can create virtual envinronment
python3 -m venv venv
- Install requirements via
pip install -r requirements.txt
- Run the server via
python main.py
- Python Flask
The following are the profiles of those who contribute to our project. If you would like to read about the writers please feel free to visit their about page. Mark Nicholson Kseniya Kudasheva Source site with quotes
from flask import Flask, render_template
from random import randint
app = Flask(name)
quotes = ['here some quotes', 'many of them']
@app.route('/')
def home():
return render_template("home.html")
@app.route('/get_quote')
def quote():
return quotes[randint(1, len(quotes))]
if name == 'main':
app.run(debug=True, host='1.0.0.0', port=5000)