This is my personal website built with Next.js 14, TypeScript, and Tailwind CSS. It showcases my academic background, publications, and projects.
- Framework: Next.js 14
- Language: TypeScript
- Styling: Tailwind CSS
- Deployment: PM2
- UI Components: Custom components with Framer Motion animations
- Theme: Dark/Light mode support with next-themes
.
├── app/ # Next.js 14 app directory
├── components/ # React components
├── public/ # Static assets
├── styles/ # Global styles
└── types/ # TypeScript type definitions
-
Clone the repository
git clone https://github.com/wanghui5801/Profile.git cd Profile
-
Install dependencies
npm install
-
Start the development server
npm run dev
-
Clean Up Old Deployment Files
rm -rf deploy
-
Create Deployment Directory
mkdir -p deploy cp -r app deploy/ cp -r components deploy/ cp -r public deploy/ cp -r styles deploy/ cp -r types deploy/ cp package.json deploy/ cp next.config.js deploy/ cp ecosystem.config.js deploy/ cp postcss.config.mjs deploy/ cp tailwind.config.ts deploy/ cp tsconfig.json deploy/ cp .eslintrc.json deploy/
-
Create Archive
tar -czvf deploy.tar.gz deploy/
-
Navigate to Server Directory
cd /www/wwwroot/your-domain
-
Backup Current Deployment (Optional)
tar -czf backup-$(date +%Y%m%d).tar.gz .next node_modules
-
Clean Up Old Files
rm -rf deploy rm -rf node_modules rm -rf .next
-
Extract New Files
tar -xzvf deploy.tar.gz mv deploy/* ./ rm -rf deploy
-
Install Dependencies
npm config set registry https://registry.npmmirror.com/ npm install
-
Build Project
NODE_ENV=production npm run build
-
Start Service
pm2 delete my-profile || true pm2 start ecosystem.config.js
- Node.js >= 18.17.0
- NPM >= 9.0.0
- PM2 (for production)
- Responsive design
- Dark/Light mode
- Smooth page transitions
- Dynamic content loading
- SEO optimized
- Image optimization
- TypeScript support
- ESLint configuration
- Tailwind CSS with custom configuration
MIT License - see LICENSE for details.