homepage
homepage copied to clipboard
My personal homepage built with β‘οΈ Next.js, π Sanity.io andπ Tailwind CSS
johnschmidt.de
My personal blog and homepage.
Technology
- Framework: Next.js
- Content management: Sanity.io
- Styling: Tailwind CSS
Repository overview
-
/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
Running locally
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)