Skip to content

mariobacellar/servisim

Repository files navigation

Servisim Build Status Codacy Badge License: Unlicense

Servisim - Service Simulator v0.1

Description

It is not a sinful server. But you can't forget to disconnect it from your website. It's so simple to use. You will not even want to talk to the API anymore: It is a sin!

It is a Javascript builded to mock APis calls.

Basically, it persist JSON files and when something hits the endpoint, it returns the related JSON. It is very simple to adapt. Just follow the 'client' or 'product' logic inner.

Into ./servisim_db folder you have samples of some fakes JSON.

You must adapt the 'servisim.js' file to you endpoint: (i.e: /cliente/select/1).

I used Restify (http://restify.com) but, you can change the web service framework to your favorite into 'servisim.js' file.

Install

npn install

Run

node servisim

Test

curl http://localhost:8089/api/client/select/1

Author

Mario da Costa Bacellar is SME System Integration as Solution Architect and postgraduate at 2015 by Universidade Federal do Rio de Janeiro in Computer Engineering and Systems, MBA. He has +19 years experience in Enterprise IT Solutions and SOA Governance.

Get in touch:

  • mario.bacellar@gmail.com
  • https://www.linkedin.com/in/mariobacellar
  • Aplicação tá pronta. Mas e as APIs? Salvo pelo Node. (Node e Oracle?)

  • https://www.linkedin.com/pulse/aplica%C3%A7%C3%A3o-t%C3%A1-pronta-mas-e-apis-salvo-pelo-nodejs-mais-mario-bacellar

  • ©2019 No Copyright, You can share!