Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start your blockchain platform? #131

Open
bulldosers opened this issue Jan 24, 2018 · 4 comments
Open

How to start your blockchain platform? #131

bulldosers opened this issue Jan 24, 2018 · 4 comments

Comments

@bulldosers
Copy link

When I use the command go get github.com/AplaProject/go-apla, I just get some log such as:

# github.com/AplaProject/go-apla/packages/notificator
gopath/src/github.com/AplaProject/go-apla/packages/notificator/notificator.go:23: undefined: sync.Map
# github.com/AplaProject/go-apla/packages/autoupdate
gopath/src/github.com/AplaProject/go-apla/packages/autoupdate/autoupdate.go:50: undefined: os.Executable

I don't know how to start your blockchain network just like geth client.
Look forward your reply and help, thanks.

@bulldosers
Copy link
Author

bulldosers commented Jan 24, 2018 via email

@elvidesound
Copy link

@bulldosers please specify your Golang version for more detailed feedback.

@AplaProject AplaProject deleted a comment from rpoletaev Jan 25, 2018
@bulldosers
Copy link
Author

Thanks for your replay and I upgrade my go version to 1.9.3. When I run command line ~/apla/go-apla , I get the log

INFO[0000] Config file missing.                         
INFO[0000] started with                                  version=0.1.6b11 work_dir=/home/fuwanzeng/apla

and what I need to do to continue ? Is there some web-API that could be used to interact with the blockchain platform just like geth-client? Or is there some wrong understanding disunderstand with the feature of the blockchain platform?

@c-darwin
Copy link
Member

c-darwin commented Jan 29, 2018

Hello @bulldosers,
Sorry for delay.

Short instruction

  1. Download https://github.com/centrifugal/centrifugo/releases

  2. config.json

{
  "secret": "yWaC39F9zWgP4xqp",
  "web": true,
  "admin_password": "password",
  "admin_secret": "test",
  "namespaces": [
    {
      "name": "public",
      "anonymous": true,
      "publish": true,
      "watch": true,
      "presence": true,
      "join_leave": true,
      "history_size": 10,
      "history_lifetime": 30,
      "recover": true
    }
  ]
}
  1. ./centrifugo

  2. Create database "testing"

  3. Clone and go build https://github.com/AplaProject/go-apla/tree/release

  4. ./go-apla -dbUser=postgres -dbName=testing -initDatabase=1 -centrifugoSecret=yWaC39F9zWgP4xqp -centrifugoUrl=http://localhost:8000/ -generateFirstBlock=1 -workDir=/YOUR_DIR/ -configPath=/dev/null

  5. Setup https://github.com/AplaProject/apla-front

  6. REACT_APP_API_URL='http://localhost:7079/api/v2' yarn build

  7. yarn start

  8. http://localhost:3000 -> import existing key -> /YOUR_DIR/PrivateKey

  9. Admin tools->import https://raw.githubusercontent.com/GenesisKernel/apps/master/demo_page.json

  10. Goto home page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants