Skip to content

Commit 33a0f16

Browse files
committed
nextjs prisma implementation details
1 parent 9420f9f commit 33a0f16

File tree

1 file changed

+7
-1
lines changed
  • src/content/project/2022/07-17-nextjs-prisma-boilerplate

1 file changed

+7
-1
lines changed

src/content/project/2022/07-17-nextjs-prisma-boilerplate/index.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,18 @@ Make a solid foundation for a modern full stack Next.js server side rendered app
4040

4141
## Implementation details
4242

43+
It is a boilerplate project that aims to establish good practices from the beginning. Frontend code is organized into the following layers `pages` -> `layouts` -> `views` -> `components` suitable for unit and integration testing. Similarly backend code is organized into `controller`, `middleware` and `service` layers for easy testing. Styling code uses BEM and Tailwind. Theming and dark mode are implemented as Tailwind plugin. React Query is used for data fetching along with Suspense and ErrorBoundary.
44+
45+
Frontend tests are done with Jest, Testing Library, Mock Service Worker, backend tests use Supertest client, E2E tests are done with Cypress. All tests are configured to run locally on the host, in Docker and in Github Actions.
46+
47+
App is built as a Docker image inside Github Actions and deployed to VPS behind the Traefik reverse proxy.
48+
4349
You can find more implementation details in the <Link href="https://github.com/nemanjam/nextjs-prisma-boilerplate#documentation-1" variant="markdown" target="_blank" title="Documentation">Documentation</Link> section on Github.
4450

4551
## Lessons learned
4652

4753
- A thorough research is essential for building successful projects.
48-
- Be careful with using the latest versions of frameworks and libraries while they are still not battle tested and documented.
54+
- Be careful with using the latest versions of frameworks and libraries while they are still not battle tested and documented properly.
4955

5056
## Links
5157

0 commit comments

Comments
 (0)