node 13.6.0 & npm 6.13.6
Frontend: Angular, RxJS, Typescript, mdbootstrap
Back-End: Nestjs, Rxjs with PubNub for realtime communication
First run npm install
to install all dependencies.
Run npm run serve
to start both frontend/api dev servers.
- frontend: navigate to http://localhost:4200/
- api: available at http://localhost:3333/
The app will automatically reload if you change any of the source files.
Run npm run build
to build the project. The build artifacts for both frontend & api will be stored in the dist/
directory.
Run npm run start
to serve the build on http://localhost:3333/ who serve the frontend app.
Automatically deploys when pushing changes on master
branch.
GET /api/twitch/games-viewers-count
Returns the total streams viewers counts for:
- Rainbow Six Siege
- Far Cry 5
- Assassin’s Creed Odyssey
Example response:
// Status: 200 OK
[
{
"name": "Rainbow Six Siege",
"id": "460630",
"abrev": "R6S",
"viewersCount": 13793
},
...
]