Giter Site home page Giter Site logo

danitseitlin / dmock-server Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 0.0 362 KB

Mock server built for automation and ongoing development.

License: Apache License 2.0

TypeScript 100.00%
mock mocker server typescript delightful-mock-server nodejs automation

dmock-server's Introduction

๐Ÿ’ซ About Me:

A passionate coder with motivation to create

At least a cup of coffee per 20 lines of code โ˜•

๐Ÿ’ป Tech Stack:

Jenkins Python Redis Angular.js NodeJS IOS ANDROID React React Native AWS Netlify Heroku PHP CSS3 C# Java TypeScript

๐Ÿ“Š GitHub Stats:



โœ๏ธ Random Dev Quote


dmock-server's People

Contributors

danitseitlin avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dmock-server's Issues

On server start, sometimes we get an error of connection

On server start, sometimes when performing api requests i'm assuming it's not done starting up and requests are already made.
Getting the following error:

Error: {"message":"connect ECONNREFUSED 127.0.0.1:5000","name":"Error","stack":"Error: connect ECONNREFUSED 127.0.0.1:5000\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1142:16)","config":{"url":"cloud_accounts/cjdvbgfnmk","method":"get","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","User-Agent":"axios/0.21.1"},"baseURL":"http://localhost:5000/v2/","transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"httpsAgent":{"_events":{},"_eventsCount":2,"defaultPort":443,"protocol":"https:","options":{"rejectUnauthorized":false,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":null,"maxFreeSockets":256,"maxCachedSessions":100,"_sessionCache":{"map":{},"list":[]}}},"code":"ECONNREFUSED"}

Mock server: add support for query string in the URL

The Route type needs in addition a property for query string parameters

node_modules\dmock-server\lib\index.d.ts
export declare type Route = { method: RequestMethod; path: string; queryStringParameters?: { name: string, values: string[] }[]; statusCode?: number; headers?: { [key: string]: any; }; response: { [key: string]: any; } | ResponseFunction; };

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.