Skip to content

juliansamper/timetrack

Repository files navigation

TimeTrack API

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.

Documentation

The documentation was build with Swagger - swagger-jsdoc and the link is the following:
https://qrvey-js-time-tracker.herokuapp.com/api-docs/

Installation

Installing TimeTrack API Locally

First download the project and run the following command.

  $ npm install

Start the server:

  $ npm start

Deploy the API on Heroku

  1. Install the Heroku CLI
  2. If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
  $ heroku login
  1. Clone the repository
  $ heroku git:clone -a qrvey-js-time-tracker
  $ cd qrvey-js-time-tracker
  1. Deploy your changes
  $ git add .
  $ git commit -am "make it better"
  $ git push heroku master

Run Tests

  $ npm run test

Important: Ensure the packages Nodemon, Ts-node and Typescript are under the dependencies node in the package.json, NOT in devDependencies

Tests Results

The following screenshots are the results of the tests prior to the deploy on heroku, these tests were made with Jest and Supertest.

General - /

[SCREENSHOT] UNIT TEST RESULT - ALL FILES (JEST COVERAGE REPORT - 20210606 220644)

Root - /src

[SCREENSHOT] UNIT TEST RESULT - ALL FILES (JEST COVERAGE REPORT - 20210606 220644)

DTO - /src/DTO

[SCREENSHOT] UNIT TEST RESULT - SRC-DTO (JEST COVERAGE REPORT - 20210606 220644)

Bussiness - /src/bussiness

[SCREENSHOT] UNIT TEST RESULT - SRC-BUSSINESS (JEST COVERAGE REPORT - 20210606 220644)

Connectors - /src/connectors

[SCREENSHOT] UNIT TEST RESULT - SRC-CONNECTORS (JEST COVERAGE REPORT - 20210606 220644)

Controllers - /src/controllers

[SCREENSHOT] UNIT TEST RESULT - SRC-CONTROLLERS (JEST COVERAGE REPORT - 20210606 220644)

Middleware - /src/middleware

[SCREENSHOT] UNIT TEST RESULT - SRC-MIDDLEWARE (JEST COVERAGE REPORT - 20210606 220644)

Models - /src/models

[SCREENSHOT] UNIT TEST RESULT - SRC-MODELS (JEST COVERAGE REPORT - 20210606 220644)

Routes - /src/routes

[SCREENSHOT] UNIT TEST RESULT - SRC-ROUTES (JEST COVERAGE REPORT - 20210606 220644)

Services - /src/services

[SCREENSHOT] UNIT TEST RESULT - SRC-SERVICES (JEST COVERAGE REPORT - 20210606 220644)

Utils - /src/utils

[SCREENSHOT] UNIT TEST RESULT - SRC-UTILS (JEST COVERAGE REPORT - 20210606 220644)

About

Time Tracking API developed under nodejs with Typescript, Express and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors