This app will export data from the Companion App to a firebase database.
Click Fork (located in the top right corner of the github repository). After that click the green code button and then copy your url path.
Go to terminal.
git clone [paste your git url here]
cd Madden-Companion-Exporter
npm install
To run this application locally (no real use to run locally):
npm run start
Go here: https://mongodb.com and create an account or login. Next, create an application.
- If you have trouble finding this information click the "connect" when viewing your db cluster
- If you plan on hosting this make sure to whitelist the server ip or it won't work
DB_HOST="your_db_host"
DB_PASS="your_db_pass"
DB_USER="your_db_user"
Go here: https://dashboard.heroku.com/ and create an account or login. Next, create an application. Then, click on the new application and go to the Deploy tab. Under deployment method, connect to your github repo of this project. Then go ahead and do a manual deploy. Lastly, figure out the url to your app.
Go to the league's export page you want. Enter in the url of your heroku app in the following format. herokuurl.herokuapp.com/yourusername Dont forget your username. It needs a username to match up with the app.post routes. The data will then be in your firebase database to do as you wish. Either download it or use the firebase database to power your website.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request