Challenge Overview
Welcome to the Rewrite Python script to Nodejs challenge. This challenge is to convert an existing script written in Python to a service script in Nodejs.
Challenge Details
The challenge is quite straightforward.
We will provide you with an existing script written in Python. You need to rewrite this script as a service in Nodejs.
We already have a base libraries nodejs module that contains many services. You need to use the same design patterns and conventions used in the existing module and create a new service.
You can call this the “Einstein” service. From the provided python script, you need to rewrite all the accessor and mutator methods in javascript. This includes:
-
find
-
fetch (from the loadXXX() methods)
-
customerData
-
name
-
fullName
-
homeAddress
-
-
billingData
-
balanceDue
-
newCharges
-
dueData
-
billContent
-
-
wifiData
-
wifiSettings
-
primaryWifiNetwork
-
wifiName
-
wifiPassword
-
-
serviceAppointment
- videoDeviceNames
-
-
set
-
wifiPassword
-
Final Submission Guidelines
-
Since you will be creating a new service in an existing module that contains many more services, try reusing many of the modules that already exist. Do not use alternative libraries (for example using lodash instead of underscore which already exists for the project) and do not create your own configurations or helper functions. Reuse the existing code as much as possible.
-
Follow the existing design pattern of the provided base libraries module. DO NOT create unnecessary folders and files. Only update what is required.
-
Video is not required for this challenge
- You need to provide tests in line with the tests for other services in the module.
- Winner will be required to submit a merge request ot the project's repository