Skip to content

Latest commit

 

History

History

README.md

TODOs

A simple TODO app based on NQLStore

Requirements

Getting Started

  • 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_URL for SQLite.
    • MONGO_URL (required) and MONGO_DB (default: "todos") for MongoDB
    • REDIS_URL for 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.py

License

Copyright (c) 2025 Martin Ahindura
Licensed under the MIT License

Gratitude

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

Buy Me A Coffee