This is a project for learning about:
- Start a node project.
- Refactor a previous code example using JS modules.
- Apply Test Driven Development methodology.
- Use git to version every significant change in the project.
- Use some dependencies.
- Apply GitHub actions to automate test.
- Fix code errors using ESLint.
- Built an API using Express.
Jest for testing, to install jest use:
npm install jest --save-dev
Eslint for fix error, to install ESLint use:
npm install eslint --save-dev
Express for server and API builting, to install Express use:
npm install express --save
In this branch is where my solution live, for check out you need to clone this repo into your computer and run:
npm install
Then for see how the different components works run:
npm run start
If you want to run the server use:
npm run server
if you want to run telegram bot server use:
- In telegram send
/start
to @BotFather and follow the config for preparing a newBot/newbot
. - When you finish @BotFather gives you and HTTP API token, you are going to save this token creating a
.env
file.TOKEN: 0423-02385:1542352
- Finally run:
npm run bot
If someone wants to add or improve something, I invite you to collaborate directly in this repository: fizzbuxx-refactoring-project