/co2-emissions

Client and API for querying CO2 emissions by country

Primary LanguageJavaScript

co2-emissions

Requirements

  • node
  • npm
  • PostgreSQL

TODO

  • Throttle autosuggest fetching
  • Multiple countries in same graph
  • Cache for database queries
  • Better promise error handling

Installation

dependencies

npm install

database migrations

npm run migrate

Running

development

npm run start:dev   # frontend file watch
npm run server:dev  # development server

production

npm start           # compile bundle and start server

Working version in Heroku