Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethereumdegen/shopman-server
A rails-based web server for selling small goods using PaySpec on Ethereum
https://github.com/ethereumdegen/shopman-server
Last synced: 21 days ago
JSON representation
A rails-based web server for selling small goods using PaySpec on Ethereum
- Host: GitHub
- URL: https://github.com/ethereumdegen/shopman-server
- Owner: ethereumdegen
- Created: 2020-01-12T02:19:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T16:46:22.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T06:24:52.270Z (about 1 month ago)
- Language: CSS
- Size: 3.46 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Shopman Server
1) Refactor , fix product_price model so its used and not price_currency / price_raw_units
2) allow user to swap between 0xbtc and dai in JS, only show products of the appropriate currency type. Take this currency type into account when adding a product to the basket. dont allow checkout w multiple coins but throw an error .
### Set up
# installation
- install ruby 2.5.1 (rvm install 2.5.1)
- install node 8.16.0 (nvm install 8.16.0)
- install yarn (https://yarnpkg.com/lang/en/docs/install/#debian-stable)
- install libpq-dev (required for postgres, apt-get install libpq-dev)
- install postgres (https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04)
- Clone this repo
- 'gem install bundler:1.16.2'
- 'bundle'#### postgres
> sudo -i -u postgres;
> psql
> create role payspec with createdb login password 'password';
> CREATE DATABASE payspec_development OWNER payspec;# config
1) npm run credentials
> add 'sendgrid_password:' your sendgrid API key2) start redis server in another screen 'redis server'
##### install javascript dependencies [production only]
yarn
rake assets:precompile
rake webpacker:compilebe sure to edit .env!
#### Start the server
npm run server## Generate an admin account with: (do not list product as admin!)
rake db:build_admin[[email protected]]