GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - unlessquit/s2: (HTTP) Storage Service

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
src
src
 
 
test
test
 
 
.dir-locals.el
.dir-locals.el
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

s2

(HTTP) Storage Service

Usage

npm install
npm start

or

docker run -p 3000:80 unlessquit/s2

From command line

# Store
curl -X PUT -H "Content-Type: image/png" --data-binary @image.png http://localhost:3000/my/image.png

# Retrieve
curl http://localhost:3000/my/image.png
curl http://localhost:3000/o/4e4cca9ce5267a5a25c276d0a9538af1a1855b1b
curl http://localhost:3000/o/4e4cca9ce5267a5a25c276d0a9538af1a1855b1b/image.png
curl http://localhost:3000/o/4e4cca9ce5267a5a25c276d0a9538af1a1855b1b/whatever.png

From any webpage

<script type="text/javascript" src="https://some-s2-server/app/js/s2.js"></script>

<script type="text/javascript">
  var s2 = new S2('https://some-s2-server')

  s2.storeJson('/hello.json', {text: "Hello World!"}, function (_err) {
    s2.fetchJson('/hello.json', function (_err, json) {
        console.log(json.text)
    })
  })
</script>

About

(HTTP) Storage Service

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.