Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.01 KB

README.md

File metadata and controls

32 lines (27 loc) · 1.01 KB

Todo-Backend

Simple Todo backend application which uses flask and mysql. Allows to create/modify and delete todos.

Prerequisites

  • Python 3.6 (Installed through anaconda)
  • Anaconda 4.5.11
  • MySQL 5.7

Setting up

  • Create a database and table with the following character set and collation.
    • Refer src/database/
  • Clone the repository.
  • Create the virtual environment using anaconda.
    • conda create -n todo python=3.6
  • Activate the anaconda virtual environment.
    • conda activate todo
  • Install all the required packages in your virtual environment.
    • pip install -r requirements.txt
  • Update the database values in etc/config/secrets.ini.
  • Run Flask server (inside src directory) with
    • python app.py
  • Access the APIs with.
    • localhost:5000/fetch_todo
    • localhost:5000/add_todo