Small time tracking React app using GraphQL & Fabric UI.
Manage clients & their project and your employees & their time sheets.
I made this project for fun, don't expect regular updates. Feel free to PR! Please ★ Star the repo if you use it.
I chose to use Graphcool as GraphQL API but you can use any GraphQL API as long as the schema stay the same. If you choose to use another API you may have to rewrite the register & sign in mutations.
- Create a free Graphcool account
- Enable Email-Password Auth in Graphcool
- Replicate the schema in your own project. It's currently not possible to import a schema in the Console (Web UI) of Graphcool. I chatted with them and they're working on a CLI tool that will have this feature. Should be ready in the next few days/weeks.
- In the
Permissions
tabs of Graphcool Console, make sure to mark all calls withAuthentication required
exceptCreate
inUser
model (you'll se why later) - Clone the repo
- Copy
config.example.js
toconfig.js
and set your own API url - Run
npm install
- Run
npm start
- Enjoy! Please consider ★ starring the repo
There is no quick/easy way right now to create the first user.
Feel free to PR to add one :)
- Install React Dev Tools
- Go to
/users
- Find the React Component
<t refresh=fn()>
and setshowPanel
state tofalse
- You'll now be able to click the
+ New
button, click it to add a user - When you're done, go to
/
and log in. Now don't forget to go back to Graphcool Console, inPermissions
tab, markCreate
inUser
model withAuthentication required