Simple Todo backend application which uses flask and mysql. Allows to create/modify and delete todos.
- Python 3.6 (Installed through anaconda)
- Anaconda 4.5.11
- Mac
- Download
- Install the dmg file.
- Mac
- MySQL 5.7
- Mac
- brew install mysql@5.7
- Mac
- 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