- sudo npm install -g webpack
- sudo npm install -g webpack-cli
- sudo npm install -g nodemon
- cd /project
- npm install
- cd /project
- touch .env
Environment (.env file) should contain:
- dbURL='mongodb://{user}:{password}@ds131800.mlab.com:31800/{project_name}'
- secret='my-secret'
- NODE_ENV = 'dev'
- API_TOKEN = '{API_TOKEN}'
You can use NODE_ENV production when looking to move the application to production.
Honourable mention my hero Daniel Freitag over at api.football-data for the kick ass API!
- Competition: curl http://api.football-data.org/v1/competitions/467
- Fixtures: curl http://api.football-data.org/v1/competitions/467/fixtures
- Teams: curl http://api.football-data.org/v1/competitions/467/teams
- Team: curl http://api.football-data.org/v1/teams/{team_id}
- Team Fixtures: http://api.football-data.org/v1/teams/{team_id}/fixtures
- Team Players: http://api.football-data.org/v1/teams/{team_id}/players
- cd /project
- mkdir data
- mongod --dbpath ./data
- nodemon
- webpack -w
- Stephen Cassedy (https://github.com/casseds2)
- Aaron Daly (https://github.com/aaron-daly)