A
A
Alexander2017-06-19 20:36:24
Node.js
Alexander, 2017-06-19 20:36:24

How to create simple request handling with webpack-dev-server?

Added webpack-dev-server to my project, specified index.html file for assembly.
I need to test the work of Ajax in the project, and, accordingly, a small server part for this.
Where can I read how to write some routes and server logic on it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-06-19
@aleksand44

If I understood correctly.
You can quickly generate an application through express-generator and use the default route that will be there (copy-paste a couple of new ones in a minute).
Or raise some json-server locally and test on it (another link to the topic is https://jsonplaceholder.typicode.com/).
Just in case, it is worth mentioning the proxy in webpack-dev-server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question