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/cli
package 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
/web
and/studio
folder as described in the corresponding.env.example
files - Install the packages with
npm install
in/web
andsanity install
in/studio
- Start your development enviroment with
npm run dev
in/web
andsanity start
in/studio
(You could also set-up something likeconcurrently
to parallelize these tasks)