Skip to content

Suwadith/Blog-Application-Python-Kivy-MySQL

Repository files navigation

Blog-Application-Python-Kivy-MySQL

Software requirements

  1. Python 3.9.x
  2. Latest pip version 22.0.x

Setting up the MySQL DB

  1. create a user on the db with username='admin' and password='admin' with all the admin/root privileges
  2. create a database named 'blog'
  3. import the Assets/blog.sql file on to the database
  4. make sure the server is up and running and using the default port

Setting up the virtual environment and executing the program

  1. execute the following command on the root directory(basically inside the code repository) to set up the virtual environment
$ python3 -m venv venv
  1. execute the below command on the same directory to use or activate the virtual environment
  • Windows

    $ venv\Scripts\activate

  • Linux

    $ source venv/bin/activate

  1. install the dependencies using the following command using the virtual environment
$ pip install -r requirements.txt
  1. run the following command to start the kivy app using the virtual environment
$ python Main.py

Screens - Left to Right (Can be navigated using different icons provided in the top toolbar)

  1. Public Screen (Home Icon)
  • Used to view posts that are not restricted. Anyone can view without logging in
  1. Members Screen (Group of people Icon)
  • Used to view posts that are member restricted. only logged in registered users can view posts in this section.
  1. Private Screen (Lock Icon)
  • Used to display all the posts made by the current logged-in user and gives them teh ability to edit and delete posts their posts.
  1. Create Post Screen (Plus Icon)
  • logged-in member will be able to create a blog post. They can choose between public view and member only view.
  1. Admin Screen (Head Icon)
  • If the logged-in user is the admin then he'll be able to view all the activity related log entries on a list
  1. Login/Registration Screen (Power Icon)
  • Can log in as a normal member or an admin. Or you can register as a non-admin user.

Pre created users

  1. Admin user
username: admin
password: Admin$123
  1. Member user
username: charles
password: Charles$123

Note: This program was developed as part of an assessment given by the Middlesex University

About

A simple blogging application built using the Kivy framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published