Back to the stack

JavaScript + Swift Developer for simple app exploration!

Remote Worldwide Hiring now

Ok, so the description is long as we wanted to be clear. But we promise, this is an easy one if you are a Swift developer with some JavaScript experience or viceversa, it should only take one or two days. We want to sketch an application that regularly fetches information from remote services to be used within a Swift application. The system will use JavaScript to interact with the remote... services and send the responses back to Swift for rendering. The primary goal is to figure out how to implement a modular and flexible architecture that can easily accommodate new services. So although this sketch will just be fetching information from one service, the goal is taken from here we can create more JavaScript modules to add more services. The services will represent remote machines information (like computers with IPs, etc…). The JavaScript code should have two functions that can be called from outside: “is_valid” and “fetch”. Both functions in the service will require specific authentication details provided through a ServiceConfiguration object (like tokens, user, etc…), that you will define as you need. For this initial script, we will only implement as service the Tailscale API, and in particular just a single method: https://github.com/tailscale/tailscale/blob/main/api.md#list-tailnet-devices IMPLEMENTATION DETAILS • *JavaScript Side**: • Implement an abstracted service layer with generic "is_valid" and "fetch" functions. • Ensure the service layer can handle different services by providing a mechanism for service-specific implementations. • Develop service-specific implementations for Tailscale, adhering to the common interface provided by the abstracted service layer. • Utilize provided authentication tokens/user details from the ServiceConfiguration object. • Make request to the external service using the standard JavaScript’s `fetch` function preferably. • Model resources based on the data received from the services and return them to the Swift side. • *Swift Side**: • Integrate the abstracted JavaScript service layer into the Swift application using the JavascriptCore framework (JSContext, evaluateJavascript, etc…). • Implement UI elements (e.g., buttons) to trigger the JavaScript functions based on the selected service. • Display the returned objects/resources in rows for validation and proof of functionality. Tailscale: • Resources: Devices connected to the user’s tailnet (network). • ServiceConfiguration for authentication: Tailscale tokens and probably the tailnet name. • Device information: For each device, should return at least “addresses”, “id”, “nodeId”, “name”, “hostname”, “created” and “lastSeen”. DELIVERABLES This is a simple sketch for an application. We do not require testing or a fancy UI. The application should be compatible with both simulators and devices. Additionally, the corresponding JavaScript code, which provides the abstraction layer for service interaction, should be included. The JavaScript code should be structured to handle different services, such as Tailscale, and should provide the "is_valid" and "fetch" functions as per the project requirements. The application should demonstrate the ability to validate service configurations and fetch resources from the selected service, displaying them appropriately in the UI Apply Job!

Apply for this role Opens the employer's application page — free, no JobStack account needed.

More from the stack

Remote Online Amazon Chat Jobs No Experience – Easy Jobs Hiring...

Remote Worldwide
View role

Remote Entry Level Travel Assistance

Remote Worldwide
View role

Target Data Entry Jobs No Experience (Customer Support, Phone...

Remote Worldwide
View role

Sr Director, Wealth Sales Enablement Strategist

Remote Worldwide
View role

Sales Consultant - Remote | WFH

Remote Worldwide
View role

TikTok Virtual Assistant Remote Job – Work From Home Job

Remote Worldwide
View role

Sr. Manager, Provider Partner, DentaQuest (Pulaski County- Arkansas )

Remote Worldwide
View role

Program Outreach Specialist

Remote Worldwide
View role

Work from Home Jobs - No Experience Required | Remote Career...

Remote Worldwide
View role

Typing no experience

Remote Worldwide
View role

Audit Manager - Remote

Remote Worldwide
View role

Android Operations Coordinator

Remote Worldwide
View role

[Work From Home] American Airlines – Sr Manager, HR Compliance &

Remote Worldwide
View role

Principal Review Specialist

Remote Worldwide
View role

Experienced Remote Part-Time Data Entry Specialist - Apple Inc. - WFH - Technology & Innovation

Remote Worldwide
View role

Data Entry Clerk - Remote Quality Registry Specialist - Patient Outcomes and Data Management

Remote Worldwide
View role

FP&A Analyst IV

Remote Worldwide
View role

Experienced Data Engineer for Privacy and Information Security – Building Scalable Data Pipelines and Ensuring Data Protection Excellence at arenaflex

Remote Worldwide
View role

Contact Center Agent, Remote

Remote Worldwide
View role

Accounts Payable Specialist, Senior job at CHS Inc. in Spokane, WA

Remote Worldwide
View role