This is a simple Flask app that allows users to create, view, update, delete, share notes. It also allows to query notes based on keywords. It implements jwt based authentication for using any APIs. It also implements basic rate limiting and api throttling to handle high traffic.
MySQL
Flask
-
Clone the repository:
git clone https://github.com/pasati072020/Flask-Notes-App.git -
Install the requirements
pip3 install requirements.txt -
Add database configuration details in environment variables. It is used in file app_conf.py.
-
Run the App Locally.
python3 main.py --> This will start the app locally on the system and create the necessary database and tables on MYSQL. -
In order to test the API, use the endpoint "/api/auth/signup" by providing username and password as payload. This will register user in the database. Next, use the endpoint "/api/auth/login" to get the auth token.
-
Auth Token needs to passed to all the APIs in order to get the correct response.