Localhost
A complete step-by-step guide to fork, clone, and run Databayt projects locally on your machine.
What you'll learn: Fork repository → Clone locally → Install dependencies → Run development server → Make your first contribution
Step 1: Fork the Project
Start by creating your own copy of the repository on GitHub.
- Navigate to the repository you want to contribute to
- Click the "Fork" button in the top-right corner

Step 2: Create Your Fork
Ensure the repository name is available and create your fork.
- Verify the repository name is available
- Keep the default settings (unless you need to change them)
- Click "Create fork" to complete the process

Step 3: Open VS Code/Cursor
Launch your preferred code editor and prepare to clone the repository.
- Open a new window in VS Code or Cursor
- Click on "Clone Repository" or use the Source Control panel
- Prepare to paste your repository URL

Step 4: Clone from GitHub
Get your forked repository URL and clone it locally.
- Go back to your forked repository on GitHub
- Click the green "Code" button
- Copy the HTTPS URL to your clipboard
- Paste it in your editor's clone dialog

Step 5: Choose Local Directory
Select where you want to store the project on your computer.
- Choose a directory for your projects (e.g.,
~/Documents/projects/
) - Create a new folder if needed
- Select the location and confirm

Step 6: Open in Editor
Open the cloned project in your code editor.
- Wait for the cloning process to complete
- Click "Open" when prompted
- Your project is now ready for development

Step 7: Install Dependencies
Use pnpm to install all required dependencies.
- Open the integrated terminal (
Ctrl/Cmd + ~
) - Run the install command:
pnpm install
- Wait for installation to complete

Step 8: Set Up Environment
Configure your environment variables for local development.
- Copy the environment template:
cp .env.example .env.local
- Edit
.env.local
with your specific values (if needed) - Save the file

Step 9: Start Development Server
Launch the development server and see your app running.
- Run the development command:
pnpm dev
- Wait for the server to start
- Open your browser to
http://localhost:3000

Step 10: Verify Installation
Confirm everything is working correctly.
- Check the website loads properly in your browser
- Verify hot reload by making a small change
- Ensure no console errors are present

Next Steps: Making Your First Contribution
Now that your local environment is set up, you're ready to contribute!
Create a Feature Branch
git checkout -b feature/your-feature-name
Make Your Changes
- Follow our coding patterns - Check /docs/pattern
- Use our components - Browse
src/components/ui/
for reusable components - Test locally - Ensure your changes work properly
Test Your Changes
# Build the project
pnpm build
# Run linting
pnpm lint
# Type checking (if available)
pnpm type-check
Commit and Push
# Stage your changes
git add .
# Commit with conventional format
git commit -m "feat: add new feature description"
# Push to your fork
git push origin feature/your-feature-name
Create a Pull Request
- Go to your fork on GitHub
- Click "Compare & pull request"
- Fill out the PR template
- Submit for review
Common Commands Reference
Development
pnpm dev
- Start development serverpnpm build
- Build for productionpnpm start
- Run production buildQuality Checks
pnpm lint
- Run ESLintpnpm format
- Format codepnpm type-check
- Check TypeScriptTroubleshooting
Common Issues
Port already in use?
# Kill process on port 3000
npx kill-port 3000
# Or use a different port
pnpm dev -- --port 3001
Node modules issues?
# Clean and reinstall
rm -rf node_modules pnpm-lock.yaml
pnpm install
Environment variables not working?
- Check
.env.local
file exists - Restart the development server
- Ensure variables start with
NEXT_PUBLIC_
for client-side
Getting Help
Community Support
Join our Discord server for real-time help and connect with other contributors.
Documentation
Check our Get Started guide and Contributing guidelines.
🎉 Congratulations! You now have a fully functional local development environment. Start exploring the codebase, pick an issue that interests you, and make your first contribution to Databayt!