My personal blog and homepage.
- Framework: Next.js
- Content management: Sanity.io
- Styling: Tailwind CSS
/web- Next.js application folder/web/lib- API to fetch data from Sanity/web/next-sitemap.js- Configuration for the next-sitemap package to autogenerate sitemaps/web/api/views- API route to return current view counter based on Plausible Analytics data
/studio- Sanity Studio folder
You need the
@sanity/clipackage to work with the Sanity Studio locally! More information here.
- Clone the repository
git clone https://github.com/jopesh/homepage.git - Go to your newly created folder
cd homepage - Set up your enviroment variables in the
/weband/studiofolder as described in the corresponding.env.examplefiles - Install the packages with
npm installin/webandsanity installin/studio - Start your development enviroment with
npm run devin/webandsanity startin/studio(You could also set-up something likeconcurrentlyto parallelize these tasks)