A flask application that allows users to use that one minute wisely. The users will submit their one-minute pitches and other users will vote on them and leave comments to give their feedback on them.
This is a flask application that will help create short pitches as well have people comment on their pitches.
Here are some user stories to help you get started:
- As a user, I would like to see the pitches other people have posted.
- As a user, I would like to vote on the pitch they liked and give it a downvote or upvote.
- As a user, I would like to be signed in for me to leave a comment
- As a user, I would like to receive a welcoming email once I sign up.
- As a user, I would like to view the pitches I have created in my profile page.
- As a user, I would like to comment on the different pitches and leave feedback.
- As a user, I would like to submit a pitch in any category.
- As a user, I would like to view the different categories.
- In your models, implement at least 1 one-to-many relationship.:heavy_check_mark:
- Your project should have a comment model.:heavy_check_mark:
- Your project should have a profile page.:heavy_check_mark:
- Your project must have a user model.:heavy_check_mark:
- Your project should follow the proper folder structure.:heavy_check_mark:
- Your project should have a functioning authentication system.:heavy_check_mark:
- Your project should contain migration files for the different model structure.:heavy_check_mark:
- Python and pip (I am currently using 3.9.6) Any version above 3.7 should work.
- Git installed on your machine
- Code editor/ IDE
-
Clone GitHub repository
git clone https://github.com/KenMwaura1/zoo_pitch
-
Change into the folder
cd zoo_pitch
-
Create a virtual environment
python3 -m venv venv
- Activate the virtual environment
source ./bin/activate
-
If you are using pyenv:
3a. Create a virtualenv
pyenv virtualenv zoo_pitch
3b. Activate the virtualenv
pyenv activate zoo_pitch
-
Create a
.env
file and add your credentialstouch .env
OR Copy the included example
cp .env-example .env
-
Add your credentials to the
.env
file -
Install the required dependencies
pip install -r requirements.txt
-
Export
manage.py
as the default flask app in your environmentexport FLASK_APP=manage.py
-
Make the shell script executable
chmod a+x ./start.sh
-
Run the app
./start.sh
OR run with the flask-cli
flask run
-
To run the tests:
flask tests
- Python-3.9.6
- Flask web framework
- Bootstrap(Material Bootstrap 4)
- HTML5
- CSS3
MIT License
Copyright (c) 2021 Kennedy Ngugi Mwaura
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.