I'm developing a front end with reactjs for a fairly large project which has two main interfaces.front-end of the main site and front-end of the admin.
Should i develop these as two different projects or one project in reactjs. if i structure these as two separate projects i'm well aware that it means i will have to do lot of repeating code on both projects. So i presume i should consider it as one project as below.
client (Project Folder)
- app/main
- app/admin
If i'm developing this as one project how do different front-ends route to different sub-domains if it lies in one project folder.
- example.com - main front-end
- admin.example.com - admin front-end