Modern Portfolio App using React JS


⚠️ Before you start
- Make sure Git and Node.js are installed.
- Clone this repository to your local computer.
- Create a
.env file in the root folder.
- Contents of .env:
VITE_SANITY_PROJECT_ID=XXXXXXXXXXXXXXXX
SANITY_TOKEN=XXXXXXXXXXXXXXXX
- Open a terminal in the root directory and run
npm install or pnpm install. This installs both the portfolio app and Sanity Studio (workspace).
- Create an account in Sanity.
- Run
npm run studio or pnpm studio to start Sanity Studio. The local URL will be shown in the terminal.
- Log in, then copy your project ID and create an API token under the API tab. You will not be able to copy the token later.


- Add your portfolio details through Sanity Studio.

- Start the app with
npm run dev or pnpm dev (runs Netlify Dev, which serves Vite and the functions together).
NOTE: Make sure you don’t share the Sanity token publicly.
:raising_hand: Need Help?
If you run into issues during installation or setup:
:camera: Screenshots:




:gear: Built with





:wrench: Stats

:raised_hands: Contribute
You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
Buy Me a Coffee 🍺

:rocket: Follow Me

:star: Give A Star
You can also give this repository a star to show more people and they can use this repository.
:books: Available Scripts
In the project directory, you can run:
npm run dev / pnpm dev
Runs the app and Netlify Functions together via netlify dev.
Open http://localhost:8888 to view it in your browser.
The page will reload when you make changes.
npm run lint / pnpm lint
Runs ESLint.
npm run build / pnpm build
Typechecks with TypeScript 6, then builds the app for production to the build folder.
npm run preview / pnpm preview
Serves the production build locally.
npm run studio / pnpm studio
Starts Sanity Studio in development mode.
npm run studio:build / pnpm studio:build
Builds Sanity Studio for production.
:page_with_curl: Learn More
You can learn more in the Vite documentation and the React documentation.
评论