Mapme

Frontend

It's nice to be able to learn monorepo, the way it works is to share applications, modules, libraries and so on. The plan for this project is to create a map that can be used by multiple users, of course with an authentication feature, and in it users can add points along with their emotions in the form of emojis which will be displayed as markers on the map, that's the plan...


As time went on, the work got worse, so it was abandoned like that, leaving only the login and registration pages. This is my first idea to make platform maps that everyone can use.


Why use Monorepo?

Monorepo is is a development approach where multiple software projects are stored in a single repository. This contrasts with a polyrepo approach where each project is stored in a separate repository. Monorepo advocates argue that it simplifies dependency management, encourages code sharing and reuse, and enables more efficient continuous integration and delivery workflows. Monorepo tools, such as Lerna and Yarn Workspaces, can help manage the complexities of a large codebase. However, critics argue that monorepos can become unwieldy and slow down development for certain use cases.


Whereas the dependency that I use here to setup is using TurboRepo, previously I used Lerna and it's fun to try complex things even though it is considered and or aims to simplify a repository.


The initial monorepo setup uses a template from vercel, I'm using pnpm here, you can use another one if you wish, with the following code:

pnpm create next-app --example https://github.com/vercel/examples/tree/main/solutions/monorepo monorepo

Next edit the /apps/app/pages/index.tsx section and try running the project with:

pnpm dev

There will be running turbo command as you install as global or dev dependency before, and then go to http://localhost:3000, and your monorepo app will be ready for development.


I'm open for any collaboration for this project, if you are interested in my idea and explanation above, don't hesitate to email me, it's nice to have a product that really suits your hobby.


Thank you for reading this content, don't forget to be happy.


© 2023, ngrhadi
Jambi, Indonesia