Keywords: NextJS, Clean Architecture, Onion, NodeJS, TODO application.
This is a NextJS application. The main goal of this sample TODO application is to demonstrate how clean architecture can be implemented in a boostraped NextJS application.
First, run the development server:
docker-compose up
npx prisma migrate devOpen http://localhost:3000 with your browser to see the result.
If you familiar with NextJS you will recognize the structure of the src/app folder. Inside you will find all the NextJS
related files.
src/application:Contains your use cases and interfaces.src/domain:Contains domain entities.src/infrastructure:Contains the implementation of adapters, repositories.src/main:Contains factories to compose use cases as well as handlers to abstract web logic.
unit test
improve types