Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Frontend Dev Experience - Decoupling UI from API #266

Open
wbprice opened this issue Feb 19, 2018 · 3 comments
Open

Frontend Dev Experience - Decoupling UI from API #266

wbprice opened this issue Feb 19, 2018 · 3 comments
Assignees

Comments

@wbprice
Copy link
Member

wbprice commented Feb 19, 2018

As @kaxcode noted some time ago, the build tool causes a fair amount of frustration. The code for prerendering the React app is bespoke and pretty messy, so I propose splitting off the frontend portions of the Trails app into a Next.js app.

The immediate benefits of this are that we can spend less time fretting over the build tool configuration, we get code splitting, etc. Additionally, since the frontend will be on a separate server we can scale frontend and backend independently.

We will need to update routing to treat the frontend and backend separately.

@wbprice wbprice self-assigned this Feb 19, 2018
@ttavenner
Copy link
Contributor

@wbprice would this mean splitting the app into separate repos like we did for OHI or is it a more of an architecture choice? I can see the benefits of creating a cleaner separation between front and back and I think Next.js looks like a good option, but I’m not convinced that we need to totally divorce them from each other. It seems like it would make both development and deployment more cumbersome over the long term.

@wbprice
Copy link
Member Author

wbprice commented Feb 20, 2018

I'm fine with a monorepo.

@wbprice
Copy link
Member Author

wbprice commented Mar 27, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants