Welcome to the DocMagic contributor community! 🎉
This guide is designed for beginners who may have never contributed to an open-source project before. It will walk you through every step required to set up the development environment on macOS and Linux, so you can start contributing confidently to this AI-powered document generation platform.
- 📆 Prerequisites
- ✅ Step 1: Install a Package Manager
- 🔧 Step 2: Install Git
- 🧰 Step 3: Install Node.js and npm via NVM
- 💻 Step 4: Terminal & Shell Setup (Optional but Recommended)
- 🧑💻 Step 5: Install VS Code and Extensions
- 📂 Step 6: Clone and Set Up the Project
- ⚙️ Step 7: Setup Environment Variables
- 🚀 Step 8: Run the Project Locally
- 🎨 Step 9: Optional Dev Enhancements
- 🧪 Step 10: Common Issues & Fixes
- 🤝 Need Help?
Before you begin, ensure you have the following:
- A GitHub account: Sign up here
- Basic familiarity with opening a terminal (Command Line Interface)
- Admin rights on your machine (to install tools)
Homebrew is a popular package manager that simplifies installing software on macOS.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Verify installation:
brew --versionAPT is the default package manager on most Debian-based Linux systems.
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential curl file gitGit is used to track code changes and collaborate with others.
brew install gitsudo apt install gitVerify installation:
git --versionNVM (Node Version Manager) helps manage multiple Node versions easily.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bashThen activate NVM:
source ~/.bashrc # or ~/.zshrcnvm install --lts
nvm use --ltsVerify:
node -v
npm -v- Terminal: iTerm2
- Shell: Oh My Zsh
- Theme: Powerlevel10k
Install Zsh + Oh My Zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Add Powerlevel10k:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >> ~/.zshrcsudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"brew install --cask visual-studio-codesudo snap install code --classic- ESLint
- Prettier
- Tailwind CSS IntelliSense
- GitLens
- Markdown All in One
- DotENV
Go to https://github.com/Muneerali199/DocMagic and click the Fork button.
git clone https://github.com/YOUR_USERNAME/DocMagic.git
cd DocMagicReplace
YOUR_USERNAMEwith your actual GitHub username.
npm installcp .env.local.example .env.local- Supabase keys
- Google API keys
- Any other required environment variables
Ask maintainers if you need development sample credentials.
npm run devVisit the app locally in your browser:
- Terminal Themes: Dracula, One Dark, Nord
- VS Code Themes: GitHub Dark, Night Owl, Monokai Pro
- Shell Plugins: autosuggestions, syntax highlighting
rm -rf node_modules
npm cache clean --force
npm installnvm use- Refer to
README.mdandCONTRIBUTING.md - Comment under your assigned GitHub issue
- Join the community Discord or reach out to project mentors
Made with ❤️ by the DocMagic community.
Happy coding and welcome aboard! 🚀