A federated E-commerce store.
Server allows signup.
Buyers/Seller signup as users.
A local catalogue to show all listings.
Followed catalogue with listings from select sellers.
Federation, follow sellers on other instances.
Moderated. Federated.
Running
Backend server is located in web-client. enter this directory. Run a git pull if you think there might be updates. Run `cat default.nix` to get npm. Run npm install to get .node_modules/. To start the server, run `cat cmd`, including the `` marks.
Frontend server is also in the same directory, and you need the same steps to setup the build environment. To repeat, `cat default.nix` to install npm. Then run npm install if not already done so. Then build the project with npm run build. To serve the user interface, run `cat serve`, again including the `` marks.
Alternatively, run `sh run.sh build` to start both ends. Run `sh run.sh` w/o arguments to skip building.
Common use
nix, guix package managers used throughout. `cat default.nix` -> enter nix env. `cat default.scm` -> enter guix env. Only one of these, i.e. either nix or guix is used at a time.
npm install. Once you enter the nix env, run this and npm will download and install binaries to ./node_modules directory.
The telegram bot requires that you setup your bot on telegram first, and then enter the auth token in the 'token' variable.
These services are developed, tested, and deployed on a nixos system.
Bugs
Signup throws error, but works.
New registered users cannot add products.
Why?
Federation works better than peer-to-peer, for economic and technical reasons.
There are peer-to-peer solutions to market/trading, but not any for federated network.
Connect to the Fediverse, aka. Mastodon, Pleroma, Pixelfed and dozens of others so on.