Skip to content

SYSTEM-OF-CONDUCTORS/http_json_db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HTTP JSON database server

A JSON database based on Python http server. It's useful when building a IoT project.

Usage

To run the server, simply execute the Python script.

python3 server.py

Run the server with specific port number

python3 server.py 9693

Upload parameter by HTTP GET query string

http://127.0.0.1:9693/?key=value

Get JSON

http://127.0.0.1:9693/get_json

Get JSON then update parameter

http://127.0.0.1:9693/get_json?key=value_new

Run the server automaticlly by systemd

sudo cp python-http-server.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable python-http-server.service

About

Scan to Enter Stratum, server by python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published