1 Create:
(1) Create http server object
(2) Create an interface routing object (generally use express/Koa)
(3) Set the route path and add the processing function after route matching [generally including database operation/interface transfer operation, etc., and return the processing result]
(4) Write test cases
2 Deployment
Deploy git code to a remote server, and use pm2 or supervisor to handle background processes
3 test
Local and remote testing with Paw or Postman etc.
4 Fill the pit
(1) Use postman to test the local, encounter 403 Forbidden [Figure 1], available
(2) To test the remote server with postman, you need to check the Proxy settings
:Settings>Proxy