The API Server behinds the DotA Notifier Mobile app https://github.com/noitq/dota_notifier_moible_app
DotA Notifier is an app allows users following DotA2 Pro Players.
- Auth APIs (login, signup, refersh token)
- Subscribe/Unsubscribe a player API
- Implement push notification using Firebase Cloud Messaging
- Background worker for pulling new live matches using OpenDota Api
- Top followed Pro Players API
- Current live match on DotaTV API
- Postgres Database for store user, channel, subscription info
- Google Firebase Account for push notification.
- Clone this repository
$ git clone [email protected]:noitq/dota_notifier_server.git
- Install the dependencies
$ pip install -r requirements.txt
- set Environtment variables
Assume you are using linux system, we use the export
command for setting ENV variable, if you are using Windows, please use equivalent command.
- Your app secret key (a strings you wish, such as 'absdfasdfasdf')
$ export SECRET_KEY = 'absdfasdfasdf'
- Postgres database uri such as 'postgres://mycduaaqgpcsjz:f0a56a53b4b450806@ec2-54-246-89-234.eu-west-1.compute.amazonaws.com:5432/abcd'
$ export SQLALCHEMY_DATABASE_URI = 'postgres://mycduaaqgpcsjz:f0a56a53b4b450806@ec2-54-246-89-234.eu-west-1.compute.amazonaws.com:5432/abcd'
- Firebase config
$ export FIREBASE_CONFIG = '{ your firebase config obtained from firebase console}'
- Run server
$ flask run
Now your api server are running on local host.