View Online · Report Bug · Request New Feature
- Framework: Next.js
- Database: Planetscale
- ORM: Prisma
- Authentication: NextAuth.js
- Deployment: Vercel
- Comments: Giscus
- Favicon: realfavicongenerator
- Content: MDX + Contentlayer
- Analytics: Vercel
- Styling: Tailwindcss
- Code Syntax Highlighting: Shiki
- Clone the repository
git clone https://github.com/tszhong0411/honghong.me.git
- Go to the project directory
cd honghong.me
- Install dependencies
yarn
- Create a
.env.local
file and input environment variables based on the.env.example
file so that the project can run properly.
# Comment System (Giscus)
# https://giscus.app/
NEXT_PUBLIC_GISCUS_REPO=
NEXT_PUBLIC_GISCUS_REPOSITORY_ID=
NEXT_PUBLIC_GISCUS_CATEGORY=
NEXT_PUBLIC_GISCUS_CATEGORY_ID=
# Spotify Now Playing
# https://developer.spotify.com/documentation/web-api/reference/get-the-users-currently-playing-track
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
SPOTIFY_REFRESH_TOKEN=
# Google API (YouTube stats)
# https://developers.google.com/youtube/v3/getting-started
GOOGLE_PRIVATE_KEY=
GOOGLE_CLIENT_EMAIL=
# Authentication
# https://next-auth.js.org/getting-started/example
NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
# Github OAuth
# https://github.com/settings/applications/new
OAUTH_CLIENT_KEY=
OAUTH_CLIENT_SECRET=
# Github API (Github stats)
# https://github.com/settings/tokens/new
GITHUB_TOKEN=
# Database URL
DATABASE_URL=<DATABASE>://<HOST>:<PORT>/<DB>
# Just some random string (used for hashing)
# You can use https://www.useapassphrase.com/ to generate the string
IP_ADDRESS_SALT=
# WakaTime API Key (Coding hours)
# https://wakatime.com/api-key/
WAKATIME_API_KEY=
- Run the development server
yarn dev
Contributions make the open source community an excellent place to learn, inspire and create. Thank you very much for any contributions you make.
If you have better suggestions, fork and create a pull request. You can also simply open an issue with the "enhancement" tag. Don't forget to give this project a star! Thanks again!
- Fork the repository
- Commit your changes (
git commit -m 'Add some Feature'
) - Push to the branch (
git push
) - Open a Pull Request
Made with ❤️ in Hong Kong