Message from JavaScript discussions

July 2018

— On heroku


I am serving my angulars prod builds index.html with deployed express server only but when i wrote code on local machine i made all my http requests to locally running express servers

— What is heroku??

— Will have to use aws or digitial ocean for what i wanna achieve i guess

— Hosting service :)

— A company that offers ram .. cpu etc on the cloud so that you can run your programs

— Yea same

— And their free tier is kinda good to present small projects :P

— Yea .. you actually use it for "free"

— Just make requests from client to relative paths. It'll automatically use whatever domain you're on

— http.get('/api/getCount/')

Without hardcoding "localhost:4100/api/getCount"

— It does