A simple TODO app based on NQLStore
-
Ensure you have Python +3.10 installed
-
Copy this repository and enter this folder
git clone https://github.com/sopherapps/nqlstore.git
cd nqlstore/examples/todos- Create a virtual env, activate it and install requirements
python -m venv env
source env/bin/activate
pip install -r requirements.txt-
To use with MongoDB, install and start its server.
-
To use with redis, install redis stack and start its server in another terminal.
-
Start the application, set the URL's for the database(s) to use.
Options are:SQL_URLfor SQLite.MONGO_URL(required) andMONGO_DB(default: "todos") for MongoDBREDIS_URLfor Redis.
It is possible to use multiple databases at the same time. Just set multiple environment variables
export SQL_URL="sqlite+aiosqlite:///test.db"
#export MONGO_URL="mongodb://localhost:27017"
#export MONGO_DB="testing"
export REDIS_URL="redis://localhost:6379/0"
fastapi dev main.pyCopyright (c) 2025 Martin Ahindura
Licensed under the MIT License
Glory be to God for His unmatchable love.
"When He had received the drink, Jesus said 'It is finished'. With that, He bowed His head and gave up His Spirit."
-- John 19: 30
