Setup shadcn/ui Development Environment

Learn how to setup the shadcn/ui local development environment

Project Source Code

Get the project source code below, and follow along with the lesson material.

Download Project Source Code

To set up the project on your local machine, please follow the directions provided in the README.md file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.

Previous Lessonshadcn/ui source code architectureNext LessonContributing to Shadcn UI

This lesson preview is part of the Sleek Next.JS Applications with shadcn/ui course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.

This video is available to students only
Unlock This Course

Get unlimited access to Sleek Next.JS Applications with shadcn/ui, plus 70+ \newline books, guides and courses with the \newline Pro subscription.

Thumbnail for the \newline course Sleek Next.JS Applications with shadcn/ui

In this lesson, you will learn how to set up ShadCNUI local development environment. Large open source projects usually have ever contributing guides outlining the contributing standards, including coding practices and commit convention. The ShadCNUI contributing guide starts with the project architecture, which you 've learned about in the previous lesson. The guide covers how to set up the development environment, including the tools you need to install and run the project locally. Let's see the guide. It tells us about the repository, what is the structure, which you've learned about in the previous model, and it tells you how to develop for the library, and what is the commit conventions. The first step would be to fork the ShadCNUI repository to your GitHub account, go to the ShadCNUI repository, hosted in GitHub.com/shadCN/UI, and then click on the fork button in the top right corner of the page, and click on create fork. GitHub will create a fork of the ShadCNUI repository in your GitHub account. Now you need to clone the repository to your machine. This is the second step. Turn the terminal and change the current wording directory to the location where you want the clone directory. From it/dev, and then type git clone and paste the URL that you've copied earlier. From it/sealcoin4. And then click on OK. Then navigate to the project directory, and install all the dependencies. ShadCNUI uses PNPM as a packet manager, and you can install it by running NPM install PNPM. And that's it. Now you can run the project. Let's run PNPM. Dash-filter = www.dev. And open the URL that is being printed to the terminal. You should now see the documentation website running on your computer. Now let's verify the setup. Open your favorite code editor with the project and navigate to dialogdemo.tsx. Make sure it's in the default style. Then change the edit profile to edit your profile. Look at the edit profile, and button, and change it to edit your profile. Make sure you're on the default style again. And now go back to the browser. Go to the dialog. Documentation. And you can see that it's edit your profile. Go back to your code base. Change it back to edit your profile. And see how it's changed. Teach you how to identify contributing opportunity and make changes to your folk.