Code Monkey home page Code Monkey logo

simplemockserver's Introduction

SimpleMockServer

It's an easy config mock server mainly for mobile/frontend developers as they might need early API access while the backend guys still trying to setup their system. With SimpleMockServer, people can setup API mock response from a simple settings file (config.ini) as well as a bunch of sample JSON files in couple of seconds.

How to use

  1. Setup your environment with NodeJS (http://howtonode.org/how-to-install-nodejs)
  2. Install NodeJS dependencies using the following command inside project folder: npm install
  3. Modify the config.ini file and related json files to meet your business requirement
  4. Start NodeJS with following command: node bin/www You will see the project started at port 8080. If you do want to change it to other value like 80, please check the serverConfig.js in config folder (And please make sure you have the proper permission to change the port)
  5. Try your API from either mobile API clients or your favourite web browser e.g. http://localhost:8080/api/v1/demoshop/products

Project roadmap

  1. Sample iOS clients with both Objective C and Swift
  2. Sample Android client
  3. Authentication header checking with fail response of HTTP status 401

simplemockserver's People

Contributors

yusakuno1 avatar

Watchers

James Cloos avatar  avatar  avatar

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.