A sleek and modern web application that converts binary numbers (base 2) to decimal numbers (base 10). Built with React, TypeScript, TailwindCSS, and Vite, this project showcases a clean, minimalist, and highly functional frontend implementation.
Experience the app in action: https://bin-two-dec.vercel.app/
- π Instant Conversion: Real-time binary to decimal conversion
- π‘οΈ Input Validation: Accepts only valid binary digits (0 and 1)
- π± Responsive Design: Fully responsive interface built with TailwindCSS
- β‘ Lightning Fast: Optimized build process with Vite
- π§ Type Safety: Written entirely in TypeScript
- π¨ Modern UI: Clean and intuitive user interface
| Technology | Version | Purpose |
|---|---|---|
| React | 19 | Frontend Framework |
| TypeScript | Latest | Type Safety |
| Vite | 6 | Build Tool & Dev Server |
| TailwindCSS | 4 | Styling Framework |
| ESLint | Latest | Code Linting |
- Node.js (v18 or higher)
- npm or yarn package manager
# Clone the repository
git clone https://github.com/your-username/bin2dec.git
cd bin2dec
# Install dependencies
npm install
# Start development server
npm run devThe application will be available at http://localhost:5173
| Command | Description |
|---|---|
npm run dev |
Starts the development server with hot reload |
npm run build |
Creates optimized production build in dist/ |
npm run preview |
Serves the production build locally |
npm run lint |
Runs ESLint to check for code issues |
npm run lint:fix |
Automatically fixes linting issues |
bin2dec/
βββ public/
β βββ KWK.png
β βββ screenshot.png
βββ src/
β βββ components/
β β βββ [Component files]
β βββ types/
β β βββ [Type definitions]
β βββ utils/
β β βββ [Utility functions]
β βββ App.tsx
β βββ main.tsx
β βββ index.css
β βββ vite-env.d.ts
βββ index.html
βββ vite.config.ts
βββ tailwind.config.ts
βββ tsconfig.json
βββ package.json
βββ eslint.config.js
βββ README.md
This project is configured for seamless deployment on Vercel:
- Connected to GitHub for continuous deployment
- Automatically builds and deploys on every push to main branch
- Build output directory:
dist/
# Build for production
npm run build
# Deploy to Vercel (requires Vercel CLI)
vercel --prod- Framework Preset: Vite
- Build Command:
npm run build - Output Directory:
dist - Install Command:
npm install
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Joseph Kawe
- GitHub: https://github.com/dev-kohako
- LinkedIn: https://www.linkedin.com/in/josephkawe/
- Email: josephkawe000@gmail.com
Made with β€οΈ by Joseph Kawe
β Star this repository if you found it helpful!
