Code Monkey home page Code Monkey logo

work-tracker's Introduction

Sympulse Icon

Work Tracker

This repository serves for me to track the number of hours worked through a React Native app.

Table of contents

Prerequisites

  • Set the USER_ID property in the .env. files to the ID of your Firebase user.
  • Install a JavaScript runtime, such as Node, or Bun. I personally prefer Bun, so the guides throughout the project will be using bun run instead of node run, but the choice is yours.

Actions to choose from

There is a number of actions you can perform using either bun run or npm run. These are listed in package.json, but for clarity, I also add them here.

Note: Each action is invoked either through a shell script (scripts folder), or the _dev/main.ts file. For further details on any single action, refer to these files.

Here is a list of available actions:

  • Add entry:
    • Overview: Add a custom hours worked entry to the data.json file.
    • Invocation: bun run add-entry
  • Remove entry:
    • Overview: Remove the last custom hours worked entry from the data.json file.
    • Invocation: bun run remove-entry
  • Backup:
    • Overview: Backup a data file to Google Drive.
    • Invocation: bun run backup <backup-file-name> <google-drive-folder-path>
    • Note: For the first argument, select just the name of the file inside the data folder. For the second argument, provide the full path to the folder inside your google drive.
  • Report:
    • Overview: Generate a report of hours worked for a given company during a given month of a year.
    • Invocation: bun run report <company-name> <month> <year>
    • Note: You can pass the --no-save flag to skip saving the report to the output folder.
    • Alternatives: To run the script in a development environment, use bun run dev-report <company-name> <month> <year>.
  • Invoice:
    • Overview: Generate an example invoice in the output/invoices folder.
    • Invoication: bun run main create-example-invoice

work-tracker's People

Contributors

petrcala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.