Nodejs Weekly billing implementation

Nodejs weekly billing implentation workflow

Nodejs Weekly billing implementation
Nodejs Weekly billing implementation

 

This is the weekly billing implementation. I’m using cronjobs to trigger the script every start of the week and bill all weekly transactions so job posters can pay the working hours. After that, it will scan all transactions of the week and bill it according to the job poster. The output will be on the billing page to let them know they have weekly bills.

 

 

Time Tracker Schema

Scenario: Time tracker to get working hours.. daily,monthly,yearly with unique jobID and specific user.

 

/*
* Descripition: Schema for the Time Tracker
*
*/

Schema: TimeTracker

{
Memo: "Test Memo",
DateNow: 12345,
WorkedHours: 5,
JobID: 12345,
StartTime: 12345,
EndTime:12345,
UserId:12345,
TotalHours: 5
screenshots: ""
}

/*
* Description: Output current working hours (day).
* Solution: Find the JobID and UserID then add all TotalHours Provided the Current Date.
*/

GetToday();

/*
* Description: Output Weekly consumed hours (Week).
* Solution: Find the JobID and UserID, then add all TotalHours From the Starting Date upto EndDate (Week)
*/

GetWeekly();

/*
* Description: Output Monthly consumed hours (month).
* Solution: Find the JobID and UserID, then add all TotalHours From the Starting Date upto EndDate (Month)
*/

GetMonthly();

 

// Javascript Sample Algorithms:
/*
* Getting current date
*/

var CurrentDate = Date.now();

/*
* Getting total hours
*/

var hours = Math.abs(1438669482758 - 1438669509312) / 36e5;

/*
* Timestamp to human readble format
* timestamp = 1382086394000;
*/

function TimestampToHuman(timestamp){
d = new Date(timestamp);
return d;
};

Jobwaki documentations and milestones

I am using trello for remote team collaboration.

You can find the jobwaki milestones at

MILESTONES OR ROADMAP

roadmap is used for checking the updates and what functions that we want to add on the jobwaki tech.
https://trello.com/b/XyW18A7E/jobwaki

 

TEAMROOM

The teamroom is used for recording team chats and ideas also it is used for people who are not online at the moment.

https://gitter.im/adrivanrex/jobwaki

 

 

Jobwaki Tech Stack

Jobwaki is designed as  pure JavaScript project on both client and server.
The Client-Side

  • AngularJS
    • HTML would have been, had it been designed for building web-apps.

The Server-Side

  • MongoDB
    • MongoDB (from “humongous”) is an open-source document database, and the leading NoSQL database.
  • ExpressJS
    • Sinatra inspired web development framework for node.js use for routing

Realtime Push Notification

  • Socket.io
    • Aims to make realtime apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms.

Server Language

  • Node.js
    • Event-driven I/O server-side JavaScript environment based on V8.
Creating location based jot post

How Jobwaki system works

Loggin in with your account or signing up.

Jobwaki location based signup
Jobwaki job location based signup

Finding Jobs within your Area.

location based work
location based work

Locating the specific location of a job.

Specific job location
Specific job location

Applying to a job post.

job application location based
job application location based

Checking for a job application hiring or if you are hired.

job application hiring check
job application hiring check

Creating a location based job post.

Creating location based jot post
Creating location based jot post

Manage/Hiring  job post applicants

Manage location based job applicants
Manage location based job applicants

Jobwaki location based job site Future Goals

Jobwaki is a  job platform that will easily help you find neighbor jobs with the help of google maps and reputation system that makes interaction with employers easier.

Jobwaki is on version 1.0 as of now. These are the list of upcoming updates and future developments if I have more free time.

Version 1.0 

  • has 3rd party Website login
  • can use Google Map location.
  • has User portfolio/profile
  • Can post/delete/edit  location based jobs
  • Can Apply to posted Jobs
  • Can manage Applicants
  • is Using Responsive Design
  • has Account Settings
  • Can check active contracts
  • Can view Job applications/cover letters
  • Can manage your Job Posts
  • Can hire applicants to your job post

Version 1.1 (On Development)

  • Able to message/chat applicants/hiring person
  • Able to check Notifications on job applications/posts

Version 2.0 (On going development)

  • Client-side to record working hours
  • View working hours
  • Hiring person to manage working hours