/no-sql-lite

A no sql lite database

Primary LanguagePythonMIT LicenseMIT

no-sql-lite

A no sql lite database

Setup

$ pip install -r requirements.txt

Development setup

All of this uses python3, use python2 at your own risk

setting up a virtual environment

$ virtualenv venv
$ source venv/bin/activate

Pycharm

You will need to set app as a source root

Set as dev mode

$ export PYTHONDEVMODE=1

If this is not set or not set to "1", we will run in production mode

Docker

install docker to test in production-like environment: https://www.docker.com/

commands:

Starting Server

$ bash ./start.sh

Restarting Server

TODO(kgoodman) DOESNT WORK RIGHT NOW
$ touch uwsgi.ini

Storing Data

$ curl  -X PUT \
        -H "Content-Type: application/json" \
        --data '{"key":"abcd","data":{"a":"b"}}' \
        localhost:56733/write_data

Fetching Data

$ curl -X GET "localhost:56733/get_data?key=abcd"

Seeing Logs

$ docker logs no_sql_lite

SSH To Docker

$ docker exec -it no_sql_lite /bin/bash

Web pages

  1. Index Page
  2. Get Data

Running

$ python main.py