Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextjs version #2

Closed
duythien0912 opened this issue Sep 7, 2021 · 1 comment
Closed

Nextjs version #2

duythien0912 opened this issue Sep 7, 2021 · 1 comment
Labels
answered The question is answered question Further information is requested

Comments

@duythien0912
Copy link

It will be awesome if we have frontend-clean-architecture for Next.js what do you think 😆

Repository owner deleted a comment from tosen186040 Sep 8, 2021
Repository owner deleted a comment from tosen186040 Sep 8, 2021
@bespoyasov
Copy link
Owner

bespoyasov commented Sep 8, 2021

I guess so, yeah!
Next is a beautiful framework, although a bit opinionated 😃

But I think we don't need to reinvent anything to use clean architecture principles with a Next.js project. All of the basics are gonna stay the same, like:

  • separating the domain;
  • creating framework-agnostic use cases;
  • keeping the UI separate, etc.

There might appear some difficulties with pages/ and api/ though since Next requires to keep all of those in the pages' roots. But they can be solved with adapters :–)

@bespoyasov bespoyasov added question Further information is requested answered The question is answered labels May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered The question is answered question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants
@bespoyasov @duythien0912 and others