Skip to content

ayushgptaa/ayushgupta.dev

Repository files navigation

Ayush Gupta

The 2nd version of ayushgupta.dev built with Nextjs and Sanity.io


Feel free to fork this repository to make your own portfolio, and if you liked the repo, drop a star ⭐!

How to setup Sanity 🚀

Below are the steps on how to setup sanity studio :

1. Create a Sanity account
2. Click on create new project
3. Choose "start with command line".

npm install -g @sanity/cli sanity init

Important 🚨

Select " Clean project with no predefined schemas " when creating the sanity studio using sanity init.

4. Find schema folder in this repo and replace it with the schema present in your created studio.
5. Run this command.

sanity start

6. A dashboard like this will open in localhost:3333.

Sanity desk
7. Just click on the content that you want to add.
8. For more information see Sanity docs.

Development 🏗️

Create a .env file in root of your app and add these :

NEXT_PUBLIC_SANITY_PROJECT_ID= Your_propject_id
NEXT_PUBLIC_SANITY_DATASET=production
NEXT_PUBLIC_GOOGLE_ANALYTICS= Your_analytics_id

Install 📦

npm install

Dev server 🔌

npm run dev

Build Server 🏭

npm run build

Tech Stack 🔮

  • Next.js
  • SCSS
  • Sanity CMS
  • Gsap

Author 🖋️

👤 Ayush Gupta

Theme inspired by jonasreymondin.com 💅