himama Time Clock β°
πππ A coding challenge that to build a clock-in / clock-out platform for helping employees to keep track of their time worked.
Key Features
π‘ User authentication and lovely inline validation display π‘
Ref: app/helpers/sign_up_form_builder.rb
π‘ Warmest greeting words changed with the time changes (Good morning, afternoon, ..) π‘
Ref: app/helpers/clock_events_helper.rb
π‘ Clock-in or clock-out button showed based on each user's situation per day π‘
- Clock-in button will be shown if users have not clock-in today
- Clock-out button will be shown if users have clocked-in today
- Both buttons will be hidden if users have clocked-out today
π‘ Different event logs displayed between teacher and admin π‘
- Teacher user can only see their own event logs
- Admin user can see all event logs and full permission to manage (CRUD)
π‘ A user friendly sortable / searchable / paginatable table for admin to manage the logs π‘
Ref: datatatble.js
π‘ A user friendly datetime picker for admin to choose the time π‘
Ref: datetimepicker.js
How to Use
βοΈ Website Link: https://himama-time-clock.herokuapp.com/
ππ» If you are a new user (teacher) of the platform ..
- Go to the sign up page
- Fill up the form and pass the validation
- You will see your clock-in/out page.
- The actions you can do are:
- clock-in for today (only if you haven't clock-in of course :P)
- clock-out for today (once you clocked-in, your clock-in button will be changed to clock-out button)
- See your personal event logs
ππ» If you are an existing user (teacher) of the platform ..
- Log into the website with your credentials (email, password)
- Same as point 3 and 4 of new users stated above
ππ» If you are an admin ..
- Log into the website with following credentials:
- email: admin@hola.com
- password: 12345678
- (This is only for the test. The email is made up. π)
- You will see all clock-in and clock-out events with a sortable table.
- The actions you can do are:
- modify the events via edit or delete link
- add a new event for other employees via Add New Event link
Credit
This software uses the following open source packages:
- Ruby on Rails (Ruby v2.5.3 / Rails v5.2.2)
- jQuery
- datatable.js
- datetimepicker.js
- moment.js
- Google Fonts (font: Kalam)
- Bootstrap (v4.2.1)
- Logo Image is from himama website: https://www.himama.com/
- Clock Svg is from Codepen: https://codepen.io/mohebifar/pen/KwdeMz