← Zákazky

Create a program for drivers as a streak reward in node.JS

Rozpočet: $100.0 FIXED / ⭐ 5.00 (23) United Kingdom

javascript, node.js

Preferred qualifications

  • Experience: Intermediate
Create the backend logic for Monochrome driver streaks. A streak is an incentive campaign requiring a driver to meet one or more daily targets for consecutive days within a defined campaign period. Supported targets may include completed trips, ratings, acceptance rate, online time, completed shifts and earnings. Each campaign must have a start date, end date, daily start and end time, city timezone, base reward and reward multiplier. Only activity completed inside the correct daily time window counts. The backend must evaluate every driver’s qualifying activity separately for each campaign day. It must retrieve only activity occurring within that day’s permitted hours, calculate the relevant targets and determine whether all requirements were met. Completed-trip targets must use completed trips only; ratings must relate to qualifying trips; acceptance rate must compare accepted requests with total requests; online sessions must be added together; earnings must come from qualifying completed trips; and a shift must be both accepted and completed. If several targets apply, the driver must satisfy all of them. Partial completion is a failure. Every successful consecutive day should advance the driver’s current run and increase the reward using the configured multiplier. If the driver fails a day, the current run ends, the driver keeps rewards earned for successful days and any outstanding payout is processed. If the campaign remains active, the driver may begin a new run on the next eligible day, starting again from Day 1 and the base reward. The system must support multiple runs within one campaign and prevent any reward from being paid twice. The backend must store the campaign status, current run, current run day, today’s progress, whether today has been completed, current reward, next projected reward, total earned, payout status and the reason for any failure. It must retain an audit record of every daily evaluation and perform calculations using the campaign city’s timezone. The mobile applications must not calculate streaks; they should only display the progress, rewards and statuses returned by the backend. this task will be easier than it may seam as the backend is already prepared and program will intergrate into a well structured project. Full doc: https://docs.google.com/document/d/1GjUsQYLn4znRdXnoQMHiyMTKxLrQSG_wYJamaqUSOI4/edit?tab=t.0#heading=h.of3uiockazpu
Otvoriť na Upwork

AI proposal draft

Generate a short cover letter for this job. Edit before sending.

Sign in to generate an AI proposal draft.

Prihlásiť