Back-end project made while studying at Trybe, a web development school.
The TFC is an informational site about football matches and rankings. On the development of this project I was responsible for developing an API (in a TDD way) and also integrate (through docker-compose) both front and back-ends so they work toghether consuming a database(MySQL).
The front-end was ready, so my function was to work on the back-end modeling the database with Sequelize, TypeScript and OOP, with a RESTful API so that the front could consume my endpoints properly, also make sure some business rules were complied and leave the back-end with at least 90% integration test coverage using Mocha, Chai and Sinon.
It is also possible to create, update or delete (CRUD) a match, but only an administrator is able to do so, and a token(jsonwebtoken) is required, therefore the person needs to be logged on to be able to make these changes.
- Docker-compose -> Your docker-compose needs to be at version 1.29 or higher See the documentation for how to update it
# Clone the repository
$ git clone git@github.com:RafaelCunhaS/Trybe-Football-Club.git
# Go into the project's directory
$ cd Trybe-Football-Club
# Build the project (the project will be running on the background when the build is finished)
$ npm run compose:up
# You can use the following email and password for the login to change/create matches
$ email: admin@admin.com
$ password: secret_admin