1.0.4 • Published 6 years ago

server-mapping v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Description

mapping server route by config object, make client server communication easily manageable.

Getting started

Download using npm

  • npm install server-mapping

Create a config file to describe server interaction

  • Example of how a config file should look like. link

Include scripts

 <!-- include server-mapping core code and dependency -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.17.1/axios.min.js"></script>
  <script src="node_modules/server-mapping/index.js"></script>  

 <!-- initialize the server -->
  <script src="config.js"></script>  
  <script>
  var server =  new Server(config)
  </script>  

Demo

open developer console F12 link

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago