supertestnet / superstore

A simple bitcoin webstore with whisper addresses for enhanced privacy
https://supertestnet.github.io/superstore/
Creative Commons Zero v1.0 Universal
97 stars 28 forks source link

Instructions for self-hosting #16

Closed hax0rbana-adam closed 8 months ago

hax0rbana-adam commented 8 months ago

Problem

People may want to host their own instance of this store, especially in light of issue #15. There are currently no instructions on how to do so.

While the code could be checked out and copied over to a web server, it would not be easy to keep updated with this repo. In addition, the host may want to just have a page on their site which is their store and not have the MagicWebStore branding visible to customers.

Requirements

The desired functionality for this use case is to be able to:

A. manage a store (add/remove items, check for orders, etc.) B. allow people to shop at the store C. allow the shoppers to only see what's in the store; no explanations about magic strings, Nostr relays or anything else

Implementation

I suggest checking out the git repo into a directory under the webroot on the web server. Getting updates can be as simple as a git pull.

The code for the store will all be in a directory (e.g. superstore) which need not be linked from anywhere on the site, thus the customers do not need to see any branding. Meanwhile, the seller can manually navigate to that directory and it's no big deal to have them see the branding.

Here's an example setup:

Closing this ticket should just be a matter of documenting how one could set this up and how to get updates.

Side note

Having this would also help other developer (like me) in contributing to this project. This would allow developers to set up their own test store where they can make code changes and test out those changes before submitting pull requests.