This project provides the Sanity CMS backend for the second iteration of my portfolio website V2, built with Next.js 14 and Tailwind CSS. It allows you to manage your portfolio content in a structured and flexible way.
This repository houses the Sanity CMS configuration for my portfolio website. It provides a user-friendly interface to manage your website's content, including your bio, projects, and more. You can easily clone, customize, and deploy this open-source project to suit your needs.
To set up this Sanity project, follow these steps:
- Node.js and npm/yarn installed on your machine.
- Sanity CLI installed globally: Sanity CLI
- A Sanity project ID: Create a new project on Sanity.io
-
Clone the repository:
git clone https://github.com/Maiz27/v2-sanity.git cd v2-sanity
-
Install dependencies:
npm install # or yarn install
-
Log in to Sanity:
sanity login
-
Create and configure the
.env
file:cp .env.example .env # Update .env with your Sanity project configuration
Fill in the
.env
file with yourSANITY_STUDIO_PROJECT_TITLE
andSANITY_STUDIO_PROJECT_ID
. -
Initialize the project with your Sanity project ID:
sanity init
-
Start the Sanity Studio:
sanity start
Open http://localhost:3333 with your browser to access the Sanity Studio interface.
The project includes pre-defined schemas to manage your portfolio content:
- About Me: Manage your name, bio, image, and skills.
- Frequently Asked Questions (FAQs): Create a list of FAQs to showcase your expertise.
- Job Experience: Add your work experience, including titles, locations, companies, and technologies used.
- Tools: List the tools you're proficient in, potentially linking to SVG icons for display in your frontend.
- Projects: Create detailed entries for your projects, including titles, descriptions, links, and blog-style content to reflect on your learnings with code-input and language support.
The package.json
file includes several scripts for development and management:
{
"scripts": {
"start": "sanity start", // Runs Sanity Studio locally
"build": "sanity build", // Builds Sanity Studio for production
"deploy": "sanity deploy" // Deploys Sanity Studio to Sanity's hosting
}
}
I welcome contributions! Feel free to fork the repository and create pull requests for improvements. Ensure your code adheres to the project's style guidelines.
This project is open-source and available under the MIT License.