This guide provides instructions on how to set up and run the project locally.
Ensure you have the following installed:
git clone https://github.com/PrashantIndurkar/devfolio
cd devfoliopnpm iCreate a .env.local file based on .env.example:
cp .env.example .env.localThen, update the necessary environment variables inside .env.local.
pnpm devThe application should now be available at http://localhost:1408
pnpm buildAfter building, start the application with:
NODE_ENV=production pnpm startThis project utilizes shadcn Registry, which allows you to manage and distribute custom components, hooks, pages, and other files across multiple React projects. By hosting a registry, you can reuse UI components easily without manually copying code between projects.
If you're working on a different React project and want to reuse the custom components from this repository, you can add them using the shadcn CLI with the following commands:
npx shadcn add @ncdai/utils
npx shadcn add @ncdai/use-controllable-state
npx shadcn add @ncdai/use-sound
npx shadcn add @ncdai/theme-switcher
npx shadcn add @ncdai/flip-sentences
npx shadcn add @ncdai/apple-hello-effect
npx shadcn add @ncdai/wheel-picker
npx shadcn add @ncdai/work-experience
npx shadcn add @ncdai/shimmering-text
npx shadcn add @ncdai/slide-to-unlockNote: These components are compatible with Tailwind CSS v4 and React 19.
Documentation: shadcn Registry Docs
Source files:
./src/registry
Before using the registry, run the following command to build and generate the registry JSON files:
pnpm registry:buildWhen running the npx shadcn add <registry-url> command, the selected component will be automatically downloaded and integrated into your project.