server-mapping

1.0.4 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i server-mapping

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • niradler55