This project is a personal portfolio website hosted on GitHub Pages under the domain https://tom-devtech.com/. It showcases various programming projects, demonstrating skills in React, TailwindCSS, TypeScript, and Vite.
- π± Fully responsive layout built with TailwindCSS.
- βοΈ React-based single-page application (SPA) utilizing React Router.
- π¦ Deployed via GitHub Pages using Vite.
- π Custom domain integrated using Namecheap.
- React (with React Router for navigation) βοΈ
- TailwindCSS (for styling) π¨
- Vite (for development and building) β‘
- GitHub Pages (for hosting) π
- Namecheap (for custom domain management) π
projectwebsite/
βββ public/
β βββ index.html
β βββ CNAME # Contains 'tom-devtech.com'
βββ src/
β βββ App.tsx
β βββ index.css
β βββ components/
βββ package.json
βββ tailwind.config.cjs
βββ vite.config.js
βββ README.md
- π Create a GitHub repository for your project.
- πΌ Push your React app to the repository.
- In your
vite.config.js, add the following configuration:
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
base: '/', // Adjust if your repository is a subdirectory
});- π Add a
CNAMEfile to thepublicdirectory with the following content:
tom-devtech.com
- In your
package.json, update yourscriptsto include:
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"deploy": "gh-pages -d dist"
}- βοΈ Build and deploy your project:
npm run build
npm run deploy- πΌ Push your changes to GitHub.
- β
Enable GitHub Pages under
Settings > Pagesin your repository.
- π Log into your Namecheap account.
- π Navigate to Domain List and click Manage next to your domain.
- π§ Go to the Advanced DNS tab.
- Add the following DNS records:
- CNAME Record:
- Host:
www - Value:
<your-username>.github.io - TTL: Automatic
- Host:
- A Record:
- Host:
@ - Value:
185.199.108.153(and other IPs if needed) - TTL: Automatic
- Host:
- CNAME Record:
- πΎ Save changes.
- π Go to your repositoryβs
Settings > Pagesand set the Custom domain toyourdomain.com.
- π Namecheap Documentation
- π GitHub Pages Documentation
- π Vite Documentation
- π TailwindCSS Documentation
This project is licensed under the MIT License.
π Enjoy building and deploying your own website! β¨ππ¨