Giter VIP home page Giter VIP logo

turbo-nextui-starter's Introduction

Turborepo, Next, and NextUI Starter with yarn

This repository contains a template for creating a turborepo using Next.js with NextUI. A turborepo is a monorepo that uses workspaces to manage multiple projects in a single repository. This makes it easier to share code and dependencies between projects, and it also makes it easier to manage updates to multiple projects at the same time.

This template includes everything you need to get started with a turborepo, including:

  • A Next.js project for the front-end
  • A turborepo configuration file
  • A README file with instructions on how to get started

What's inside?

This Turborepo template uses yarn as a packages manager. It includes the following packages/apps:

Apps and Packages

  • docs: a Next.js app
  • web: another Next.js app
  • utils: a stub React component library which can be shared by all applications
  • ui: a stub Next component library shared by both web and docs applications, this contains NextUI - a React UI Framework.
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tailwind-config: tailwind configurations used by ui, web and docs applications/packages.
  • tsconfig: tsconfig.jsons used throughout the monorepo

Setup

To install packages of every workspace

yarn install

Utilities

This Turborepo has some additional tools already setup for you:

  • TypeScript for static type checking
  • ESLint for code linting
  • Prettier for code formatting
  • Tailwind CSS, a utility-first CSS framework packed with classes that can be composed to build any design.
  • NextUI, a UI library for React that helps you build beautiful and accessible user interfaces.

Build

To build all apps and packages, run the following command:

yarn build

Develop

To develop all typescript apps and packages, run the following command:

yarn dev

To add packages:

yarn <workspace> add <package-name>

To remove packages:

yarn <workspace> remove <package-name>

Remote Caching

Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

cd my-turborepo
npx turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:

npx turbo link

Contributing

We love your contributions and we will do our best to provide you with mentorship and support.

Get more details in our Contributing Guide.

Useful Links

Learn more about the power of Turborepo:

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.