Skip to content

sarunyousaklor/icostats

Repository files navigation

ICO Stats

Running the app

Terminal #1:

docker-compose up

Terminal #2:

npm run dev

Seed the graph data

# This runs once a day in the production server with crontab. Locally it must
  be run manually
make shell

# Once inside the container:
node bin/importGraphData.js

Explore the API

Once the app is running you can view/query the graphql API explorer at: http://localhost:3000/graphiql

GraphQL

Debugging

Chrome canary now ships with a node debugger button as shown below:

debugger

Click on that, and make sure you have localhost:9229 as a source. A console for the app should show up when it starts.

Helpers

# Create a production build
npm run build   

# Log into the container shell
make shell

# Run node console inside docker
make console

Run tests

make test

Notes

  • In client code, import '~/foo' refers to src/client/foo. In server code, the same code refers to src/server/foo. In other words, '~' is an alias for the respective code's "home" directory.

  • We follow the airbnb style guide (with some changes) for javascript and the airbnb react style guide for React.

About

Track performance of ICOs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.2%
  • Other 0.8%