This's the Top Visitors Twitch Extension's EBS, an Extension that list the TOP 10 visitors in a Twitch Channel.
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
The EBS is our optional backend service that supports the extension. To know more about EBS, please check the oficial Twitch documentation here.
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:
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
Hey to contribute on this project, you will have some guidelines to follow.
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:
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
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
Node Environment
NODE_ENV
: Setup your node environment, like production
, development
or test
Application Options
PORT
: Set the port of the applicationdev
: Run the application in development modebuild
: Compile the Typescript using the tscstart
: Start the previous compiled aplicattion by the build scripttest
: Run all testslint
: Run ESLintThis project use two different code linters and a another extension to the IDE, that is...
Or EcmaScriptLint, is the linter responsible to check problems in the syntax and return errors, your configurations are shared and used by others linters
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
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...