All Projects → OWDIN → Eosocial

OWDIN / Eosocial

Licence: mit
Deprecated - 📝 Sample dApp of Votable SNS run by EOS Testnet.

Projects that are alternatives of or similar to Eosocial

Carmel
The Open Digital Innovation Marketplace
Stars: ✭ 136 (+871.43%)
Mutual labels:  blockchain, dapp, eos, decentralized-applications
Eos Mainnet
Ansible repo for setting up an EOS RPC API node and syncing to the mainnet
Stars: ✭ 45 (+221.43%)
Mutual labels:  blockchain, dapp, eos
Asch
Asch is an efficient, flexible, safe and decentralized application platform, which was initially designed to lower the barrier to entry for developers.The services provided by the Asch platform include a public chain and a set of application SDKs.
Stars: ✭ 484 (+3357.14%)
Mutual labels:  blockchain, dapp, decentralized-applications
Awesome Dapps
A curated list of awesome decentralized applications / resources
Stars: ✭ 130 (+828.57%)
Mutual labels:  blockchain, dapp, decentralized-applications
Blockchain
区块链、交易所、币种、自媒体、高频交易策略
Stars: ✭ 37 (+164.29%)
Mutual labels:  blockchain, dapp, eos
Advanced Eos Examples
EOS Smart Contract Development Examples
Stars: ✭ 146 (+942.86%)
Mutual labels:  blockchain, eos, decentralized-applications
Client
The nOS Client
Stars: ✭ 202 (+1342.86%)
Mutual labels:  blockchain, dapp, decentralized-applications
Awesome Blockchain
区块链白皮书、书籍、交易所、币种、自媒体等资源汇总 💯
Stars: ✭ 747 (+5235.71%)
Mutual labels:  blockchain, dapp, eos
Angular Truffle Starter Dapp
Angular CLI + Truffle Starter Dapp; write, compile & deploy smart contracts on Ethereum blockchains
Stars: ✭ 174 (+1142.86%)
Mutual labels:  blockchain, dapp, decentralized-applications
Unstoppable Wallet Android
A secure and decentralized Bitcoin and other cryptocurrency wallet for Android phones. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 165 (+1078.57%)
Mutual labels:  blockchain, dapp, decentralized-applications
Unstoppable Wallet Ios
A secure and decentralized Bitcoin and other cryptocurrency wallet for iPhone. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 180 (+1185.71%)
Mutual labels:  blockchain, dapp, decentralized-applications
Octopus
Security Analysis tool for WebAssembly module (wasm) and Blockchain Smart Contracts (BTC/ETH/NEO/EOS)
Stars: ✭ 261 (+1764.29%)
Mutual labels:  blockchain, eos, webassembly
Nearcore
Reference client for NEAR Protocol
Stars: ✭ 840 (+5900%)
Mutual labels:  blockchain, webassembly
Eth Crypto
Cryptographic javascript-functions for ethereum and tutorials to use them with web3js and solidity
Stars: ✭ 420 (+2900%)
Mutual labels:  blockchain, dapp
Awesome Blockchain
⚡️Curated list of resources for the development and applications of blockchain.
Stars: ✭ 937 (+6592.86%)
Mutual labels:  blockchain, eos
Decentralized Internet
A SDK/library for decentralized web and distributing computing projects
Stars: ✭ 406 (+2800%)
Mutual labels:  blockchain, decentralized-applications
Scatterdesktop
Connect to applications on EOS, Ethereum, and Tron. Exchange tokens with ease. Manage your assets safely. All in a simple to use interface.
Stars: ✭ 459 (+3178.57%)
Mutual labels:  blockchain, eos
Graphite
Encrypted, secure, user-owned productivity suite
Stars: ✭ 505 (+3507.14%)
Mutual labels:  blockchain, decentralized-applications
Eos Go
EOS.IO Go API library
Stars: ✭ 531 (+3692.86%)
Mutual labels:  blockchain, eos
Token Core Android
a blockchain private key management library on android
Stars: ✭ 613 (+4278.57%)
Mutual labels:  blockchain, eos

readme-banner

EOSocial

EOSocial is votable social sample dApp run by EOS Testnet. You can see how dApp works. Play with it! 😊

Disclaimer: 1) This is sample dApp running on local Testnet. You have to use carefully if you're use it with your Mainnet keys. 2) Change contract account private/public key when you're deploy somewhere.

Getting Started

These instructions will get you project up and running on your local machine for development and testing purposes.

If you want to deploy on public network(Junglenet, Mainnet, etc), you have to edit configurations.

Requirements

EOSocial can run on virtually all platforms where Docker can (macOS, Linux, etc.).

  • Docker 18.05.0-ce or higher
  • Node 8.0.x or higher
    • NPM or Yarn

Deploy on Local

Run nodeos container locally.

# run nodeos container
$ docker run --name nodeos -p 8888:8888 -p 9876:9876 -t eosio/eos nodeosd.sh -e --http-alias=nodeos:8888 --http-alias=127.0.0.1:8888 --http-alias=localhost:8888

# set config files
$ docker cp config.ini nodeos:/opt/eosio/bin/data-dir

# restart
$ docker restart nodeos

Check it is working:

$ docker logs -f nodeos
$ curl localhost:8888/v1/chain/get_info

Generate Testnet token and push smart contract:

# alias for cleos
$ alias cleos_docker='docker exec nodeos /opt/eosio/bin/cleos --wallet-url http://localhost:8888'

# unlock wallet
$ cleos_docker wallet create
$ cleos_docker wallet unlock --password <WALLET_PASSWORD>

# import nodeos key
$ cleos_docker wallet import --private-key 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3

# create system accounts
$ cleos_docker create account eosio eosio.bios EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.bpay EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.msig EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.names EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.ram EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.ramfee EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.saving EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.stake EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.token EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
$ cleos_docker create account eosio eosio.vpay EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

# deploy bios contract
$ cleos_docker set contract eosio.bios /opt/eosio/bin/data-dir/contracts/eosio.bios -p eosio.bios

# deploy multi signature contract
$ cleos_docker set contract eosio.msig /opt/eosio/bin/data-dir/contracts/eosio.msig -p eosio.msig

# deploy token contract
$ cleos_docker set contract eosio.token /opt/eosio/bin/data-dir/contracts/eosio.token -p eosio.token

# generate token
$ cleos_docker push action eosio.token create '{"issuer":"eosio", "maximum_supply":"10000000000.0000 SYS", "can_freeze":0, "can_recall":0, "can_whitelist":0}' -p eosio.token

# issue token
$ cleos_docker push action eosio.token issue '["eosio", "10000000.0000 SYS", "first issue"]' -p eosio

# deploy system contract
$ cleos_docker set contract eosio /opt/eosio/bin/data-dir/contracts/eosio.system

# make eosio.msig a privileged account
$ cleos_docker push action eosio setpriv '["eosio.msig", 1]' -p [email protected]

# create staked account for eosocial dApp
$ cleos_docker create key
Private key: <DAPP_PRIVATE_KEY>
Public key: <DAPP_PUBLIC_KEY>

$ cleos_docker system newaccount eosio --transfer eossocialapp <DAPP_PUBLIC_KEY> --stake-net "1000000 SYS" --stake-cpu "1000000 SYS" --buy-ram "100000 SYS"

# transfer initial deposit
$ cleos_docker transfer eosio eossocialapp "1000000 SYS" "initial deposit"

Check generated token:

$ cleos_docker get currency stats eosio.token SYS
{
  "SYS": {
    "supply": "11000000.0000 SYS",
    "max_supply": "10000000000.0000 SYS",
    "issuer": "eosio"
  }
}

Check eosocial dApp account:

$ cleos_docker get account eossocialapp
permissions:
     owner     1:    1 <DAPP_PUBLIC_KEY>
        active     1:    1 <DAPP_PUBLIC_KEY>
memory:
     quota:     63.36 GiB    used:     3.912 KiB

net bandwidth:
     staked:    1000000.0000 SYS           (total stake delegated from account to self)
     delegated:       0.0000 SYS           (total staked delegated to account from others)
     used:               672 bytes
     available:        164.8 TiB
     limit:            164.8 TiB

cpu bandwidth:
     staked:    1000000.0000 SYS           (total stake delegated from account to self)
     delegated:       0.0000 SYS           (total staked delegated to account from others)
     used:             71.44 ms
     available:         9600 hr
     limit:             9600 hr

SYS balances:
     liquid:       999957.5920 SYS
     staked:      2000000.0000 SYS
     unstaking:         0.0000 SYS
     total:       2999957.5920 SYS

producers:     <not voted>

Deploy smart contract:

# import eossocialapp private key
$ cleos_docker wallet import --private-key <DAPP_PRIVATE_KEY>

# send eosocial smart contract
$ docker cp contracts/eosocial nodeos:/opt/eosio/bin/data-dir/contracts/

# deploy eosocial smart contract
$ cleos_docker set contract eossocialapp /opt/eosio/bin/data-dir/contracts/eosocial

# test smart contract
## write
# $ cleos_docker push action eossocialapp write '{"author": "{ACCOUNT_NAME}", "content": "first post"}' -p {ACCOUNT_NAME}

Edit <DAPP_PRIVATE_KEY> in src/libs/api-config.js or add .env file with REACT_APP_ACTIVE_PRIVATE_KEY='<DAPP_PRIVATE_KEY>'

Start dapp like below:

$ yarn start-local

Deploy on Heroku

Work in Progress...

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • EOSIO

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].