server-mapping

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

View the Project on GitHub niradler/server-mapping

Description

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

Getting started

Download using npm

Create a config file to describe server interaction

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