Project is completed, in production, and continuously integrated.
- Cloudflare DNS
- Cloudflare SSL
- All
npm i -g yarn
- Windows
git clone https://github.com/aaanh/homepage; cd homepage; yarn; yarn dev
- Linux, macOS
git clone https://github.com/aaanh/homepage && cd homepage && yarn && yarn dev
I recommend using Vercel but if you're averse to vendor lock-in, Github Pages should be fine.
Note: I currently am not maintaining a Dockerfile for this project version, but will probably in the future.
Assuming you are deploying on a Linux-based server
- Install pre-requisites, clone, install dependencies
- Build:
yarn build
- Serve:
yarn start
- Install
nginx
for reverse proxy, run withsystemctl enable --now nginx
on systemd distros. - Install
ufw
for firewall management, run withsudo ufw enable
, configure to allow port 80 and 443sudo ufw allow http && sudo ufw allow https
. - Configure
nginx
to route your ports 80 and 443 to internal port3000
, which is the default port thatNextjs
serves.
- Production: https://aaanh.com (v6)
- v5: https://v5.aaanh.com
- v4: https://v4.aaanh.com
- v3: https://v3.aaanh.com
- v2: https://v2.aaanh.com
- You'll need to createa Spotify Developer Application https://developer.spotify.com/dashboard/
- You will need to get the various keys/SECRETS (pictured below). Recommended tutorial to do so: https://dev.to/theodorusclarence/how-to-show-now-playing-in-spotify-with-next-js-15h5