justmark0 / GetQuote

SSD course lab assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetQuote

SSD course lab assignment Browse a random quote to give you encouragement and inspiration.

Screenshots & how to use

The button below greets you when you load the page

button

After pressing this button, you go to the page with the quote itself

quote1

Update page and receive one more quote!

quote2

Demo

Simple gif demo of our project (a bit bugged, don't judge us)

gif

Installation guide

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
  1. Clone repository
  2. Go to root directory of the project cd GetQuote
  3. Optional you can create virtual envinronment python3 -m venv venv
  4. Install requirements via pip install -r requirements.txt
  5. Run the server via python main.py

Frameworks and techonologies used

Credits

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

Code examples

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)

About

SSD course lab assignment


Languages

Language:Python 92.0%Language:HTML 8.0%