Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

algorithmwatch/simple-storage

Repository files navigation

simple-storage

Save POSTed JSON in a SQLite database.

Development

./build_docker.sh
./run_docker.sh

Post data

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"some":"data","more":"data"}' \
  https://lab1.algorithmwatch.org/pushdataOP1MP0Unv0H84ZENIgMA

Deployment

./deploy.sh

nginx

location /pushdataOP1MP0Unv0H84ZENIgMA {
    proxy_pass http://localhost:5000;
}

systemd

[Unit]
Description=simple storage
Requires=docker.service
After=docker.service

[Service]
Restart=always
ExecStart=/usr/bin/docker start -a simplestorage
ExecStop=/usr/bin/docker stop simplestorage

[Install]
WantedBy=multi-user.target

About

Save POSTed JSON in a SQLite database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published