Skip to content

Commit eddc440

Browse files
committed
chore: clean up unused code and improve overall project structure
1 parent 842ff6c commit eddc440

110 files changed

Lines changed: 31937 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build-and-deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
cache: 'npm'
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: Deploy to GitHub Pages
32+
uses: JamesIves/github-pages-deploy-action@v4
33+
with:
34+
folder: out
35+
branch: master
36+
clean: true

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Eshan's Portfolio Website
2+
3+
This is a personal portfolio website built with Next.js and deployed on GitHub Pages.
4+
5+
## Deployment to GitHub Pages
6+
7+
This repository is set up to automatically deploy to GitHub Pages using GitHub Actions.
8+
9+
### How it works:
10+
11+
1. The GitHub Action workflow in `.github/workflows/deploy.yml` handles the build and deployment process.
12+
2. When changes are pushed to the `main` branch, the site is automatically rebuilt and deployed.
13+
3. The site is accessible at https://eshanized.github.io/
14+
4. Custom domain: https://eshanized.is-a.dev/
15+
16+
### Manual Deployment:
17+
18+
If you prefer to deploy manually:
19+
20+
```bash
21+
# Install dependencies
22+
npm install
23+
24+
# Build the project
25+
npm run build
26+
27+
# Deploy to GitHub Pages
28+
npm run deploy
29+
```
30+
31+
## Local Development
32+
33+
```bash
34+
# Install dependencies
35+
npm install
36+
37+
# Run development server
38+
npm run dev
39+
40+
# Build for production
41+
npm run build
42+
```
43+
44+
## Technologies Used
45+
46+
- Next.js
47+
- TypeScript
48+
- Tailwind CSS
49+
- Framer Motion
50+
- Shadcn UI
51+
52+
## Project Structure
53+
54+
- `app/`: Next.js app directory
55+
- `components/`: Reusable React components
56+
- `lib/`: Utility functions and constants
57+
- `public/`: Static assets
58+
- `hooks/`: Custom React hooks
59+
60+
## Important Configuration Files
61+
62+
- `next.config.js`: Next.js configuration
63+
- `build.js`: Custom build script
64+
- `.github/workflows/deploy.yml`: GitHub Actions workflow for deployment

0 commit comments

Comments
 (0)