CO2 and You
This is an app which measures a user's carbon footprint according to the input entered. It can store a user's history for comparison with the UK average and their own usage in time. The app also displays a chart of usage, divided into diet, transport, home.
In terminal in 'server' directory: Because package lock contains information about the packages used, 'npm init' and 'npm install' should be all that is needed
- npm init
- npm install
- npm install express
- npm install cors
- npm install mongodb
- npm install body-parser
- npm install nodemon
- mongo < db/seeds.js
- npm run server:dev
In terminal in 'client':
- npm install
- npm run serve
NB: In 'client' if Highcharts and Moment aren't running properly, run the following: in terminal:
- run npm install --save highcharts-vue
- run npm install moment
To view the app in localhost:
- Open browser and enter: http://localhost/8080 for the client view.
- Open another tab and enter: http://localhost/3000 for the server.