GithubHelp home page GithubHelp logo

prasad-katkade / react-monorepo Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 218 KB

This is an example monorepo using Vercel's Turborepo library. It contains two React apps, namely "client" and "admin," and CRUD APIs using Express.

JavaScript 18.18% HTML 11.48% CSS 6.07% TypeScript 64.27%
express monorepo reactjs tailwindcss tsup turborepo typescript

react-monorepo's Introduction

Monorepo - Using Turborepo with React App

This is an example monorepo using Vercel's Turborepo library. It contains two React apps, namely "client" and "admin," and CRUD APIs using Express.

Client - Turborepo Example - Google Chrome 2023-12-03 19-59-54 (online-video-cutter com)

What is a Monorepo?

A monolithic repository, commonly known as a mono-repo, is a version control repository that houses multiple projects or components within a single repository. This approach stands in contrast to the traditional model of having separate repositories for each project.

Advantages of Mono-Repos

1. Simplified Dependency Management

In a mono-repo, all projects within the repository share the same version control history. This makes it easier to manage dependencies between projects, ensuring that they are always compatible.

2. Unified Versioning

Since all projects reside in the same repository, it's possible to enforce a consistent versioning strategy across all components. This can simplify the release process and make it more predictable.

3. Code Sharing

Developers can easily share code between different projects within the mono-repo. This promotes code reuse and helps maintain a consistent coding style and standards across the entire codebase.

4. Atomic Changes Across Projects

When making changes that span multiple projects, it's beneficial to have atomic commits that affect all related components simultaneously. Mono-repos facilitate this by allowing developers to make coordinated changes across the entire codebase.

What's inside My Monorepo?

This Turborepo includes the following packages/apps:

Apps and Packages

  • admin: React-app app serves as a basic admin panel to create & delete products.
  • client: React-app app serves as a basic client panel to view products.
  • api: Simple CRUD APIs created using Express, used inside client and admin.
  • packages: This directory consists of common configs and UI components used in admin and client.
    Each package/app is 100% TypeScript.

React-Monorepo - Visual Studio Code 2023-12-03 20-07-32 (online-video-cutter com) (1)

How to run?

  1. Install dependencies using npm i on the root level.
  2. Run all the projects using npm run dev. To run a single project, hit the same command by opening the particular repo in the terminal.

Support

If you liked the approach, be sure to โญ the repository. Looking forward to connecting for any remote work opportunity!

react-monorepo's People

Contributors

prasad-katkade avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.