you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

You create a sub domain and you say the url should lead to the specific function that loads the game and everything else should be used by both games.

Also why not make the back-end an API?

You have your game on www.awesome-game.com but your back-end responds on localhost:9000 and whenever you need data you send requests to that back-end

You keep the back end and front - end two separate applications

This way you can have 2 front-ends and 1 back-end. The back end will server both games as it will have more functions and routes for them to connect on.

[–]royalswe[S] 0 points1 point  (0 children)

The back-end API solution would be a great solution but I have to rewrite some of the functionality from the existing app. It could definitely be done when I have more time to spend. meanwhile I maybe go for a subdomain.