Saturday, 15 December 2018

Express web server and api server question

I am looking at building a node webserver and an API server. Is it a general convention for both to be the same, using the middleware to direct certain request to load pages and some to load JSON? Ideally, I would like to load more or less static pages and retrieve info for their dynamic content from the API server. Other than keeping them clean, what would be an advantage / disadvantage of doing so? I would need to share some code between them.. that much is certain. Models and some process logic especially. Thanks

Submitted December 16, 2018 at 01:05AM by s-keL

No comments:

Post a Comment