Skip to content

Vincent-Juma/pitch-flask-app

Repository files navigation

pitch-Flask-home

Author

[Vincent Juma](https://github.com/Vincent-Juma/Pitch-Flask-App

Description

This is a flask application that allows users to post one minute pitches and also allows other users who have signed up to comment and upvote or downvote a pitch. It also allows a person to signup to be able to access the functionalities of the application

Live Link

View Site

User Story

  • Comment on the different pitches posted py other uses.
  • See the pitches posted by other uses.
  • Vote on s pitch they have viwed by giving it a upvote or a downvote.
  • Register to be allowed to log in to the application
  • View pitches from the different categories.
  • Submit a pitch to a specific category of their choice.

BDD

Behaviour Input Output
Load the page On page load Get all posts, Select between signup and login
Select SignUp Email,Username,Password Redirect to login
Select Login Username and password Redirect to page with app pitches based on categories and commenting section
Select comment button Comment Form that you input your comment
Click on submit Redirect to all comments tamplate with your comment and other comments

Development Installation

To get the code..

  1. Cloning the repository:
https://github.com/Vincent-Juma/Pitch-Flask-App.git
  1. Move to the folder and install requirements
cd Pitch-Flask-App

### create virtual environment and install pip
$ python3 -m venv --without-pip virtual
$ source virtual/bin/env
$ curl https://bootstrap.pypa.io/get-pip.py | python

pip install -r requirements.txt
  1. Exporting Configurations
export SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://{User Name}:{password}@localhost/{database name}
  1. Running the application
python3.8 manage.py server
  1. Testing the application
python3.8 manage.py test

Open the application on your browser 127.0.0.1:5000.

Technology used

Known Bugs

  • There are no known bugs currently but pull requests are allowed incase you spot a bug

Contact Information

If you have any question or contributions, please email me at [vincentjuma64@gmail.com]

License

  • MIT License:
  • Copyright (c) 2021Vincent Juma