markodvornik / express-demo

Simple web server with one GET and one POST endpoint that return a static JSON response

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple web server for testing json response

A web server that returns JSON formatted dummy response from a data.js file. It returns Bob's profile data for GET type or Bob's password for POST type requests.

Web server is build on express with cors middelware.

Install

# install
yarn

# run
yarn start

Usage

Create GET or POST request at http://localhost:3000/auth/bob.

About

Simple web server with one GET and one POST endpoint that return a static JSON response


Languages

Language:JavaScript 100.0%