Skip to content

camplight/pairing-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

This is the Camplight pair coding task. You and the interviewer are going to work together on it to make it better.

Preparation

  1. If you use VSCode: install LiveShare plugin
  2. IF you use another IDE: install https://mob.sh/

The intention is to work in a true pair-programming manner.

Setup

  1. Create a new data.json file with the following contents:

    {
      "users": [
        { "id": "1", "name": "Alice" },
        { "id": "2", "name": "Bob" }
      ]
    }
  2. Run npm i

  3. Run npm start

  4. Do one of the following requests to test the endpoints

    # Get all users
    curl http://localhost:3000/users
    
    # Get health check
    curl http://localhost:3000/health
    
    # Get user by ID
    curl http://localhost:3000/users/1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published