Skip to content

ChristopherSchoening/greeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What the program should do

A server that accepts a request (string) and responds with the inverted string. If the string contains "foo" the server should respond with a bad request code (400).

Prerequisites

Run these commands to get started

Run the program on default port (8000)

deno run --allow-net src/main.ts

Run the program on a specific port (here 8080)

deno run --allow-net src/main.ts 8080

Run the program on default port and watch for file changes

deno task dev

Run the tests

deno test --allow-net --allow-run

Example Request (on port 8000)

curl -X POST -d "hello" http://localhost:8000/

Example Failing Request (on port 8000)

curl -X POST -d "foobar" http://localhost:8000/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors