Skip to content

This is a python-flask application that will help the user with a list of pitches. In life, we only have 60 seconds to impress someone. 1 minute can make or break anyone.

License

Notifications You must be signed in to change notification settings

omololevy/That-Minute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

That-Minute

This is a project on a python language to implement the a one minute life-changing pitch. A kind of life changing quotes.

Tuesday November 9 2021

By OMOLO LEVY

Project Description

This is an application that will help the user with a list of pitches. In life, we only have 60 seconds to impress someone. 1 minute can make or break anyone.

With this app, a user is able to:

  • See the pitches other people have posted.
  • Vote on the pitch they liked and give it a downvote or upvote.
  • Be signed in for me to leave a comment
  • Beceive a welcoming email once I sign up.
  • View the pitches I have created in my profile page.
  • Comment on the different pitches and leave feedback.
  • Submit a pitch in any category.
  • View the different categories.

Project live sites

Homepage Demo

The app looks like this: Image

Setup instructions

  • Create a virtual environment in your project directory through the terminal with the command:
    $ python3.9 -m venv --without-pip virtual

  • Activate the virtual environment:
    $ source virtual/bin/activate

  • Install pip for installing other necessary python packages:
    $ curl https://bootstrap.pypa.io/get-pip.py | python

  • Install flask module:
    $ pip install flask

  • Clone the program from the online repo

  • Click on the code button to clone or download

The App Structure

|-That-Minute
    |-app/
        |-auth/
            |-__init__.py
            |-forms.py
            |-views.py
        |-main/
            |-__init__.py
            |-errors.py
            |-forms.py
            |-views.py
        |-static/
            |-css/
            |-photos/
        |-templates/
            |-auth/
                |-login.html
                |-register.html
            |-email/
                |-welcome_user.html
                |-welcome_user.txt
            |-profile/
                |-profile.html
                |-update.html
            |-base.html
            |-comments.html
            |-errors.html
            |-filter_pitch.html
            |-footer.html
            |-index.html
            |-macros.html
            |-navbar.html
            |-new_pitch.html
        |-__init__.py
        |-email.py
        |-models.py
    |-migrations/
    |-tests/
        |-test_comments.py
        |-test_downvote.py
        |-test_pitch.py
        |-test_upvote.py
        |-test_user.py
    |-virtual/
    |-config.py
    |-.gitignore
    |-LICENSE
    |-manage.py
    |-Procfile
    |-README.md
    |-requirements.txt
    |-start.sh

Deployment

  • $ heroku login
  • $ heroku create <name-of-app>
  • $ heroku config:set MAIL_USERNAME=<YOUR EMAIL ADDRESS>
  • $ heroku config:set MAIL_PASSWORD=<YOUR EMAIL PASSWORD>
  • $ heroku addons:create heroku-postgresql
  • $ git push heroku master

Database Migration

  • $ heroku run python3.9 manage.py db stamp head
  • $ heroku run python3.9 manage.py db migrate
  • $ heroku run python3.9 manage.py db upgrade

Technologies Used

  • Python
  • HTML
  • CSS
  • Bootstrap
  • Flask

Pending Issues

  • The footer is not yet polished to the required state.

  • Therefore, you can make a pull request to this repo improve it or adjust functionalities.

Support and contact details

Contact me omololevy@gmail.com

License

The project is under MIT LICENSE Copyright © 2021.All rights reserved

About

This is a python-flask application that will help the user with a list of pitches. In life, we only have 60 seconds to impress someone. 1 minute can make or break anyone.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published