Skip to content

Instantly share code, notes, and snippets.

@smj10j-ah
Last active March 14, 2024 18:01
Show Gist options
  • Save smj10j-ah/18fe62766ab5bcd0a155398b1ea11cc9 to your computer and use it in GitHub Desktop.
Save smj10j-ah/18fe62766ab5bcd0a155398b1ea11cc9 to your computer and use it in GitHub Desktop.
Earnin's Interview Debugging Challenge Readme

Earnin Debugging Interview

Single Point of Failure Colleague

The Situation

You and a few colleagues are working on an important project with a tight deadline. Unfortunately, one of your colleagues fell ill in the middle of the project! You offered to take a look at what they were working on to help push the project forward.

Your goal is to have a form that takes a user ID as an input and prints out Hello name where name is the name of the person identified by the ID

image

Can you figure out how to get their code running?

Build

<language> is one of

  • nodejs
  • java
  • python
docker build --tag earnin-debugging-challenge:<language> <language>

Run

docker run -it -p 8080:8080 earnin-debugging-challenge:<language>

Log into the container

docker run -it -p 8080:8080 earnin-debugging-challenge:<language> /bin/bash

Build AND Run

./build-and-run.sh <language>

Frontend

Navigate to http://localhost:8080/

Extra Materials

Docker

Installation (absolutely necessary)

Interview Prep (absolutely necessary)

Please pull the respective image for the language you would like to use by running the respective command:

  • nodejs: docker pull node:12.18.1
  • java: docker pull openjdk:8
  • python: docker pull python:3.7-bullseye

Getting Started (highly recommended)

Working with Images (extra credit)

Publicly Shared Gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment