Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/centareum/centareum-offers
DApp that allows store owners to post offers and customers to easily avail them.
https://github.com/centareum/centareum-offers
blockchain centareum dapp ecommerce ethereum vue vuejs
Last synced: 28 days ago
JSON representation
DApp that allows store owners to post offers and customers to easily avail them.
- Host: GitHub
- URL: https://github.com/centareum/centareum-offers
- Owner: Centareum
- Created: 2018-10-12T18:54:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-13T07:07:58.000Z (over 6 years ago)
- Last Synced: 2024-11-10T10:26:00.485Z (3 months ago)
- Topics: blockchain, centareum, dapp, ecommerce, ethereum, vue, vuejs
- Language: JavaScript
- Homepage:
- Size: 8.83 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What does this project do?
This is a DApp that allows store owners to post offers and customers to easily avail them.
Users can
* Add offers
* Revoke their offers
* Avail offers from other store owners## Local development setup
1. Blockchain Setup:
Run the development blockchain. Keep Ganache running on this Terminal shell.
```javascript
// Run Ganache locally on port 8545
ganache-cli -p 8545
```
* Copy the first private key (0) generated by Ganache.
* Private key (0) account is set as the owner of the three hard-coded offers in the app.The remaining accounts will serve as General users.
```
// Copy the first private key
Private Keys
======================
(0) Your First Private Key
```
* Open MetaMask on Chrome. Choose network Localhost 8545 and import account with private key copied from Ganache.2. Get it running:
``` bash
# go into the project directory
cd "Centareum-Offers-master"# migrate the contracts to ganache
truffle migrate# install all frontend dependencies
yarnpkg install# serve a local front-end on http://localhost:8080
yarn run dev
```* Now you can direct your browser to http://localhost:8080 and you will see this page:
![Screenshot](docs/Screenshot_4.jpg)