Skip to content

bws9000/avalanchejs-demo-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Avalanche API App Boilerplate

With Magic User Authentication Magic.link

Install your node via docker install instructions here.

First Step ( get your node running )

If you're on a Windows Machine

  • Install docker
  • Get latest golang image, then run...
 > docker run -ti -p 9650:9650 -p 9651:9651 golang:latest  
 > go get -v -d github.com/ava-labs/avalanchego  
 > cd src/github.com/ava-labs/avalanchego  
 > ./scripts/build.sh  
 > ./build/avalanchego --http-host=0.0.0.0 --network-id=fuji  
  • Now you've got a node running locally at 192.168.99.100
  • Wait until the node bootstraps completely.Take note of this line...
* > Set node's ID to L7e2Y32KzbM5LvP6FuDnCaV6GjeBxiSr7
* That is your nodes ID

Start API Service

first create an env.bat file that looks like this:

DEV_KEY and DEV_CERT only if you want to run secure locally for testing

set DEV_BLOCKCHAIN_ID=<your node id>
set DEV_AVALANCHE_IP=192.168.99.100
set DEV_KEY=C:\\<path to key>\\key.pem
set DEV_CERT=C:\\<path to cert>\\cert.pem
* cd avalanchejs-demo-cms/api
* npm run install
* .env
* npm start

Start Client App

* Open new console window
* cd avalanchejs-demo-cms/app
* npm run install
* npm run serve

If you run into trouble email me : snyder.burt@gmail.com

About

avalanchgo api demo using avalanchejs and vuejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published