This is a small fullstack application that anonimously receives youtube video recommendations. Users can upvote or downvote the sent videos to change its scores. The higher the score of a video, the more it is recommended for users. This project is mainly intended to have end-to-end (e2e), integration and unit tests applied.
$ git clone https://github.com/teles-tarcisio/sing-me-a-song
$ cd sing-me-a-song/back-end/
$ npm i
$ cd sing-me-a-song/front-end/
$ npm i
$ cd sing-me-a-song/back-end/
$ npm run prisma:migrate-test
$ npm run dev:test
$ cd sing-me-a-song/front-end/
$ npm run start
With the backend started and running on another terminal, open a new terminal and do:
$ cd sing-me-a-song/front-end/
$ npm run start
$ npm run test:cypress
On a single terminal, do:
$ cd sing-me-a-song/back-end/
$ npm run test:integration
On a single terminal, do:
$ cd sing-me-a-song/back-end/
$ npm run test:unit