V2 - ayushgupta.dev
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 ⭐!
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
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.
7. Just click on the content that you want to add.
8. For more information see Sanity docs.
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
npm install
npm run dev
npm run build
- Next.js
- SCSS
- Sanity CMS
- Gsap
👤 Ayush Gupta
- Twitter: @ayushgptaa
- Github: @ayushgptaa