Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FakeWebServer (FWS)

Table of Contents

About

This project is a self made web server that enables you to mock any path with any method that returns any body.

It's based on node and Express

Getting Started

To launch the server just type:

npm run dev

and the server will start on localhost:8080

Prerequisites

To run this server with some endpoints, you just need to put specific .json files in the resources folder. The .json need to have the following structure to work:

{
    "name": "endpoint name",
    "description": "what it does (just for doc.)",
    "path": "/path/to/resource",
    "queryParam": {
        "name": "fooo"
    },
    "method": "GET", 
    "code": 200,
    "response": {
        "unfiltered": "Hello unknown",
        "filtered": "Hello fooo"
    }
}

Installing

To launch the server just type:

npm run dev

and the server will start on localhost:8080

Usage

After the server started, you just go on http://localhost:3000/ to get the answer from you mock endpoint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages