Skip to content
This repository was archived by the owner on Aug 8, 2019. It is now read-only.

Latest commit

History

History
77 lines (66 loc) · 3.45 KB

File metadata and controls

77 lines (66 loc) · 3.45 KB

TimeTrack Project

Collaborators

API routes

VerbEndpointDescription
POST/api/loginGet a web token to use services
DELETE/api/logoutDelete token
POST/api/change-passwordAllow password change after user login
POST/api/reset-passwordAllow password reset
GET/api/projects/my-projectsList projects by logged user
PUT/api/projects/:project_id/closeChange project state to close
GET/api/projectsList all open projects
POST/api/projectsAdds new project
GET/api/projects/:idList details of a specific project
GET/api/weekly_project_reports/:idList weekly data for a specific project
GET/api/daily_logsList all daily_logs
POST/api/daily_logsAdds a new daily log
GET/api/historiesList all closed projects
GET/api/users/:user_id/projectsList all projects from an specific user
POST/api/users/availableTimeChanges the the user availableTime
PUT/api/users/:id/updateStateCreate a user
GET/api/usersList all users
POST/api/usersCreate a user
GET/api/users/:idList an specific users
PATCH/api/users/:idEdit a user
PUT/api/users/:idEdit a user
GET/api/project_membersList all project_members
GET/api/users/:user_id/projectsList projects in which the user participates

Installation

  • Clone the repository and check the project's folder
  • The current software works with PostgreSQL RDBMS

rails-time-track folder

  • Create a .env file in the root path of the project and copy all content of file .env.example and set your credentials. Follow the instructions in the file.
  • Execute bundle to install all gems
    bundle install
  • Setup your Database
    rails db:create
    rails db:migrate
    rails db:seed
  • Start server
    rails server
  • Go to http://localhost:3000/api to check all the API routes

react-time-track folder

  • Execute npm install or yarn install to download the required modules
  • Run the frontend application with:
    npm start
    or
    yarn start
  • A browser window will open with with the address: http://localhost:4000/

Welcome to the Time tracker project