Built by: Timothy Mugendi
This is an online fruit vending site
- python3.8
- pip
- Flask
- Sign in to the application to start using.
- See your profile.
- Search for different users fruits their usernames.
- order fruits
- Leave a comment on comment box.
Behaviour | Input | Output |
---|---|---|
Load the application | On application load | Display of Login Form |
Create account by Sign Up | Enter email, username and password | Redirect to login |
Login selected | Enter username and password you signed up with | Redirect to home page |
Post remark/complaint button selected | Post | Input details in a form and upload |
Click the other buttons on navbar | CLick | Redirected to page wih all the comments made on the post |
Click the user profile icon | Select Profile | Redirected to profile page where you can edit profile |
Click the user profile icon | Select Logout | Logout and redirected to login page |
- Open Terminal:
$ https://github.com/Timoh97/FruitVending.git
$ cd FruitVending
$ code . or atom . based on your text editor
- Navigate into the folder, install and activate virtual environment
$ python -m venv virtual
$ source virtual/bin/acivate
- Install all dependencies in requirements.txt
$ pip install -r requirements.txt
- Setup the database username, password, host then make migrations
$ flask db init
- Run migrations
$ flask db migrate -m"commit message"
$ flask db upgrade
(each time the database models change repeat the migrate and upgrade commands.)
$ flask db --help
(to see all commands )
- To run the application, open the cloned repo in terminal and run the following commands:
$ python3.8 manage.py runserver
- To run unittests for the class application and check if it functions well:
$ python3 manage.py test ---
- No known bugs so far, incase a bug is spotted pull requests are allowed.
-
markdown
-
flask-bootstrap4 - for bootstrap version 4
-
Heroku - online deployment
Incase of any issues at hand, please email me at [email protected]
MIT LICENSE [TIMOTHY MUGENDI]