mapping server route by config object, make client server communication easily manageable.
mapping server route by config object, make client server communication easily manageable.
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>
open developer console F12 link