DEV Community

Cover image for Full stack monorepo boilerplate
Ankit Kumar
Ankit Kumar

Posted on

Full stack monorepo boilerplate

We often struggle to built a repo with frontend and backend codes in the same repository. Many questions comes to our mind like is it a good practice to have both in the same repository? Is it maintainable? etc.

There is already a solution for maintaining multiple features/modules/repositories which is called monorepo. Many companies like Microsoft, Meta and Twitter follows it.

There are many ways to achieve mono repo structure like Lerna, Rush, Nx



I have created a boiler plate for maintaining full stack applications. Here is the Github link - https://github.com/knowankit/fullstack-monorepo-boilerplate

I am using Nx for mono repo. For front end I am using React with typescript and for backend I am using NestJS, GraphQL server with mongoDB

There is a working todo-app added in the repo which makes it easy to understand the flow.

Clone the repo and run npm install and after the npm run dev.

This single command will start both the front end and the back end application.

Do give a ⭐️ to the monorepo-fullstack-boilerplate if you liked it.

Top comments (0)