Code Monkey home page Code Monkey logo

react-time-tracking's Introduction

React time tracking CircleCI codecov

Time tracking app on React, try demo.

The app is inspired by toggl.com.

Tech stack

Web application based on React (clientside) and Firebase (serverside)

Features

Authentication

  • Signup using email/password

Time entry

  • Can add time entry
  • Can track time spent on time entry and stop a time entry tracking
  • Can list time entries
  • Delete time entry
  • Report

Tag

  • Add tag to time entry
  • CRUD tag

Demo

Try demo at https://vivid-trace.firebaseapp.com/ and storybook

React time tracking demo

Developer notes

Enzyme

Simulate onClick event in shallow (github)

const componentWrapper = shallow(<Component />)
componentWrapper.simulate('click', { preventDefault() {} })

Simulate change event in material-ui's TextField (github)

const input = wrapper.find('input[name="text"]')
input.node.value = "newvalue"
input.simulate('change', input)

Sass and create-react-app

Enable guide

Material UI 0.16.7

Click on button in a Table's Row without select that row (github)

Doesn't support responsive (github)

Storybook

Use storyshots to enable unit test. Need install story book addon packages and babel preset

Add .babelrc to project's root directory

{
  "presets": ["babel-preset-es2015", "react-app"]
}

Install packages

npm install storyshots @kadira/storybook-addons @kadira/storybook-channel --save-dev
npm install babel-core babel-preset-es2015 babel-preset-react-app --save-dev

Add src/__tests__/Storyshots.test.js:

import initStoryshots from 'storyshots'
initStoryshots()

Explicitly add material ui component id so Jest snapshot test doesn't get failed because of auto generated id

Run npm test

react-time-tracking's People

Contributors

tuanngominh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-time-tracking's Issues

Create Firebase DB

Hey,

never worked with firebase in-depth: isn't there a need to create a database in firebase in order to get this project working? What are the required settings here?

Thank you in advance

License?

Hey Tuan,

your react app is exactly what I am looking for in our company. I need to adjust a lot of stuff for example I want to have a "Desktop" App and a Mobile App with Offline Sync and Multiple Running instances ( if you start it offline on your mobile phone and start a second one on your online computer it should not break ).
I would love to fork from you and adjust a lot of stuff, even if you are a lot better then me.

Under what license did you public the repository? Would you be available as fallback support if I have questions?

Have a nice start in the week and greetings from germany,

Bastian

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.