• Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    TypeScript
  • Created over 4 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[EBS] Channel's Top Visitors

Overview

This's the Top Visitors Twitch Extension's EBS, an Extension that list the TOP 10 visitors in a Twitch Channel.

Motivation

It's started during a streaming at Lucas Montano Twitch Channel. The "Chat" has challenged Lucas Montano to work with a Stack he never worked with. The challange thread is called #umaStackQueNaoDomino

What's an EBS

The EBS is our optional backend service that supports the extension. To know more about EBS, please check the oficial Twitch documentation here.

Sumary

How to Setup

first clone or download the repository

git clone https://github.com/lucasmontano/twitch.git

After that you can install the dependencies by executing the following command in the root folder of the project

npm install

or with yarn

yarn

Now you have 2 options to start the project:

  1. Start the apllication in development mode
  2. Generate a production build

Development Mode

Run the following script to start the aplicattion on development mode with a watcher for file changes

npm run dev

or with yarn

yarn dev

With Docker

Run the following scripts to expose shell functions and start up docker containers on UNIX based OS

source dev.sh

Create .env file and install npm packages

setup_dev_environment

Up containers

dkup

Run commands inside container

dk echo Lucas Montano do canal Lucas Montano

Production Mode

First generate a build with the following command

npm run build

or with yarn

yarn build

Now to start the compiled aplicattion, run this command

npm run start

or with yarn

yarn start

Contributions

Hey to contribute on this project, you will have some guidelines to follow.

Commits

We have a standard for the commits messages, wich is this standard

type(scope?): subject  #scope is optional

Type

Type indicates what you do on your changes, and can be:

  • build
  • ci
  • chore
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

you can see more about it here

Scope

Scope indicates what is your changes, for an example, lets use the commit of this changes on readme.

docs: added contributions guidelines

Testing

Running all tests

Depending of which package manager you're using for development, you can run with npm

npm run test

or with yarn

yarn test

Environment Variables

Node Environment

  • NODE_ENV: Setup your node environment, like production, development or test

Application Options

  • PORT: Set the port of the application

Scripts

  • dev: Run the application in development mode
  • build: Compile the Typescript using the tsc
  • start: Start the previous compiled aplicattion by the build script
  • test: Run all tests
  • lint: Run ESLint

Code Linters

This project use two different code linters and a another extension to the IDE, that is...

Eslint

Or EcmaScriptLint, is the linter responsible to check problems in the syntax and return errors, your configurations are shared and used by others linters

Prettier

This linter is used only for check the code style, they don't will check the syntax, just find a way to do the code more legible and have a integration with eslint

Editor Config

That isn't a linter, just a extension to share some configs between other editors, like the format of the end of lines, identation with spaces or tabs, etc...

More Repositories

1

lucasmontano.com

lucasmontano.com
HTML
255
star
2

first-how-to-build-an-app

#1 First project of our "How to build an App" season in my Youtube channel
Kotlin
192
star
3

openweathermap-reactnative

Weather, everybody wants to know how it is going to be during the week. Will it be rainy, windy, or sunny? Luckily for us, in the information age, there are open APIs to retrieve information about it.
JavaScript
171
star
4

magic-link

Generate, send and validate a magic link.
Python
98
star
5

openweathermap

Weather, everybody wants to know how it is going to be during the week. Will it be rainy, windy, or sunny? Luckily for us, in the information age, there are open APIs to retrieve information about it.
Kotlin
97
star
6

learn-tech

Duolingo of Technology
Dart
92
star
7

youtuber-description-links

A tool to help Youtubers to manage theirs video links.
Go
54
star
8

carreiranomundomobile

Kotlin
49
star
9

twitch-extension

[Twitch Extension] Channel's Top Visitors
HTML
38
star
10

lucasmontano

38
star
11

openweathermap-flutter

Weather, everybody wants to know how it is going to be during the week. Will it be rainy, windy, or sunny? Luckily for us, in the information age, there are open APIs to retrieve information about it.
Dart
37
star
12

openweathermap-ios

Weather, everybody wants to know how it is going to be during the week. Will it be rainy, windy, or sunny? Luckily for us, in the information age, there are open APIs to retrieve information about it.
Swift
30
star
13

todo

Boilerplate project for a basic Todo list Application
Kotlin
25
star
14

emissary

[Deprecated] Emissary is a simple way to bind and exchange messages between activities and services.
Java
20
star
15

openweathermap-rn-expo

JavaScript
19
star
16

rinha-de-compiler

JavaScript interpret para a Rinha de Compiler
JavaScript
18
star
17

shopping

Sample App: List of Products and Cart
Kotlin
14
star
18

fiscalabordo

Este projeto tem como objetivo diminuir o nรบmero de acidentes envolvendo coletivos.
Java
13
star
19

Mobile-Performance-Test

Simple text-only clock application to compare React Native vs. Flutter vs. Native performance
Dart
13
star
20

pick-a-programming-language

HTML
9
star
21

rinha-backend-kt

Kotlin
7
star
22

git-basics

7
star
23

cities

Display, Sort, Filter a BIG list of cities
Java
5
star
24

life-4-two-android

Java
3
star
25

jake-wharton

How to consume the Github Repos API
Kotlin
2
star