Skip to content

superstruct-tech/http_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Server Example

This is a basic HTTP API server. An easy way to get started with Node.js server.

Installation & Run

# Download this project
git clone https://github.com/superstruct-tech/http_server
# Build and Run
cd 
npm install
npm start

# API Endpoint : http://127.0.0.1:3000

API

/

  • GET : Returns "hello"

/user-agent

  • GET : Returns User-Agent String

/b64/*

  • GET : Returns a part of endpoint comming after 'b64/' encoded to base64 format

/repetitive-word

  • POST : Returns repeated words count from the article
Request body:
{ "text": "I felt happy because I saw the others were happy and because I knew I should feel happy"}
Response body:
[{"word": "happy", "count": 3}]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published