Skip to content

philippesasseville/roadto4k-app

Repository files navigation

Roadto4kApp

This project was generated with angular-cli version 1.0.0-beta.28.3.

This project uses the MEAN stack.

alt text

Exporting the environement variables

Your need to export a few environement variables.

Here are the variables and the the places you can find them :

MONGO_URI Spin up a free instance on mongolab and create a db user. The uri will look like this : mongodb://dbuser:[email protected]:43559/db-name

DOTA_API_KEY Simply log on this website to get your api key.

STEAM_ACCOUNT_ID STEAM_ACCOUNT_ID32 STEAM_ID3

These 3 values can be found using this website

(only take the large number at the end)

export all of these with the command export VAR=value

note: to retreive your matches your steam/dota2 profile needs to be public.

Running the app

In the root folder run theses command : npm install; npm run build;

The app should be served at http://localhost:3000/

(to serve the app on a different port export PORT=XXXX;)

alt text

Special thanks to these ressources

MEAN App with Angular 2 and the Angular CLI

Official Angular doc

Forum Thread on Dota2 Api Usage

Node Dota2 Api Wrapper

PostMan App

Sublime Text Editor

TypeScript Sublime Plugin

alt text

About

Mean app to get better at dota2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published