Sunday 26 April 2020

A question about hosting app

I am working on a learning project. I have build a authentication system in nodejs using local and Google strategy. Front end is a react app. There are two options for hosting 1. Deploy front end on static hosting providers like netlify or github pages and backend node app to heroku. 2. Deploy both backend and front end on heroku with front end code in the public folder and use express.static('public')I am confused in both these approaches and could not find answer on internet. It will be a lot of help if you can explain pros and cons of both the method and which on is suitable in what conditions. Links to the articles is also appreciated. Thank you in advance.

Submitted April 26, 2020 at 02:02PM by eric_cart

No comments:

Post a Comment