Task: Hello Real World

Tags

Tutorial, Backend, Microservice

Description

Say hello to the Real Dev Platform!

For this task, we'll say hi and walk you through the process of solving a task. You'll write a very simple HTTP server that returns REAL WORLD on /hello.

We provide the following templates.

  1. Django
  2. NodeJS
  3. Docker

Each template will have a README.md containing a step-by-step guide about how to clone and submit. Try it out!

Specification

Configuration

Real world coding often reads config at runtime. Each task usually has a form of configuration for your code to read and handle.

This section tells you about what kind of configSource the task accepts, and what they mean.

The server accepts the following configuration.

configSource: "env"

PORT=8080

configSource: "cli"

your-server --port 8080

configSource: { "jsonFile": "./config.json" }

{
    // The server should start at this port
    "port": 8080
}

GET /hello

Returns a 200 OK with text REAL WORLD.

Example

Here's to test it after you code it up.

$ curl 'http://localhost:8080/hello'
REAL WORLD
Instructions
Get started
My Submissions

Submit to see your result!

Leaderboard

Nobody here yet, solve it now to get on the board!