This website is built with Next.js, Tailwind CSS, and deployed to preview(https://vercel.com/). Some ideas borrowed from Jirihofman (https://github.com/jirihofman).
Data about user and projects are gathered via GitHub API.
- Framework: Next.js
- Deployment: Vercel
- Styling: Tailwind CSS
git clone https://github.com/satviktripathi369/github-explorer.git
cd portfolioCreate a .env file similar to [.env.example].
mv .env.example .env.localAdd GitHub token into the new file.
GH_TOKEN=YOUR_GH_TOKEN
# If you have Vercel projects, create a token here https://vercel.com/account/tokens to get more info.
VC_TOKEN=YOUR_VERCEL_TOKENThen install dependencies and run the development server:
# Install dependencies.
npm install
# Replace my personal info with yours.
npm run setup
# Start hacking.
npm devEdit data.json to put your personal information there.
Please remove all of my personal information in data.json before deploying your own version of this site by running npm run setup. Once you are happy with your data.json, set
# .env or .env.local
IS_TEMPLATE=falsein your ENVs to prevent npm build from reverting data.json back to my previous data.
-
data.json: githubUsername, description, heroNames. Handled bysetup.mjs. -
README.md: link at the top -
app/layout.jsx: metadata - title, description, favicon. Handled bysetup.mjs. -
public/favicon.ico. Handled bysetup.mjs.