Is a set of tools to help the FrontEnd developer in the making of a portal alike toggl, the project was developed under nodejs with Typescript, Express and MongoDB.
The documentation was build with Swagger - swagger-jsdoc and the link is the following:
https://qrvey-js-time-tracker.herokuapp.com/api-docs/
First download the project and run the following command.
$ npm install
Start the server:
$ npm start
- Install the Heroku CLI
- If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
$ heroku login
- Clone the repository
$ heroku git:clone -a qrvey-js-time-tracker
$ cd qrvey-js-time-tracker
- Deploy your changes
$ git add .
$ git commit -am "make it better"
$ git push heroku master
$ npm run test
Important: Ensure the packages Nodemon, Ts-node and Typescript are under the dependencies node in the package.json, NOT in devDependencies
The following screenshots are the results of the tests prior to the deploy on heroku, these tests were made with Jest and Supertest.
![[SCREENSHOT] UNIT TEST RESULT - ALL FILES (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20ALL%20FILES%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-DTO (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-DTO%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-BUSSINESS (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-BUSSINESS%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-CONNECTORS (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-CONNECTORS%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-CONTROLLERS (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-CONTROLLERS%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-MIDDLEWARE (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-MIDDLEWARE%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-MODELS (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-MODELS%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-ROUTES (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-ROUTES%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-SERVICES (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-SERVICES%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)
![[SCREENSHOT] UNIT TEST RESULT - SRC-UTILS (JEST COVERAGE REPORT - 20210606 220644)](https://github.com/juliansamper/timetrack/raw/master/screenshots/%5BSCREENSHOT%5D%20UNIT%20TEST%20RESULT%20-%20SRC-UTILS%20(JEST%20COVERAGE%20REPORT%20-%2020210606%20220644).png)