Get the Open Hardware Initiative website up and running on your local machine in minutes.
Before you start, make sure you have:
- Git - Download here
- Bun (recommended) - Download here
- Alternative: Node.js 18+ - Download here
- A code editor - VS Code, Sublime Text, etc.
git clone https://github.com/OpenHardware-Initiative/OpenHardware-Initiative.github.io.git
cd OpenHardware-Initiative.github.iocd "Source code"
bun installbun run devNavigate to: http://localhost:8080
You should see the Open Hardware Initiative website running locally! 🎉
- Team members: Edit
src/data/peopleData.ts - Projects: Edit
src/data/projectsData.ts - Events: Edit
src/data/eventsData.ts - Application status: Edit
src/config/applicationConfig.ts
- Components: Edit files in
src/components/ - Pages: Edit files in
src/pages/ - Styling: Edit files in
src/or use Tailwind classes
- Save your file
- The development server will automatically reload
- Check your changes in the browser
- Test on different screen sizes (mobile, tablet, desktop)
- Commit and push your changes:
git add . git commit -m "Your change description" git push
- GitHub Actions automatically builds and deploys
- Site goes live at open-hardware-initiative.com
bun run build # Build for production
bun run preview # Preview production buildOpenHardware-Initiative.github.io/
├── Source code/ # Main source code
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── pages/ # Page components
│ │ ├── data/ # Content data
│ │ └── config/ # Configuration
│ ├── public/ # Static assets
│ └── package.json # Dependencies
├── docs/ # Documentation
├── .github/workflows/ # GitHub Actions
└── README.md # Main README
- Edit
src/data/peopleData.ts - Add new member object
- Add photo to
public/media/team/ - Save and test locally
- Push to deploy
- Edit
src/config/applicationConfig.ts - Change
isOpentotrue/false - Update
formUrlif needed - Save and push
- Edit
tailwind.config.tsfor theme colors - Use Tailwind classes in components
- Edit
src/index.cssfor global styles
- Change port in
vite.config.ts - Or kill the process using port 8080
- Install Bun:
curl -fsSL https://bun.sh/install | bash - Or use npm:
npm installandnpm run dev
- Check TypeScript errors:
bun run lint - Make sure all imports are correct
- Check for missing dependencies
- Read the Development Guide for detailed setup
- Check Content Management for editing content
- Review Deployment Guide for deployment details
- Explore Component Guide for code structure