- Nextjs (app router)
- Sanity CMS v3
- Tailwind CSS
Follow these steps to set up the project in your local development environment:
-
Clone the Repository
Navigate to the location where you want the repository on your local machine and run:
git clone <repo-url>
-
Install Dependencies
Navigate into the cloned repository and install the required packages by running:
npm install
-
Environment Variables Setup
Create a
.env
file in the root directory of the project and update the following keys with your respective values:NEXT_PUBLIC_SANITY_PROJECT_ID= NEXT_PUBLIC_SANITY_DATASET= SANITY_API_READ_TOKEN=
-
Run the Development Server
Start the local development server by running:
npm run dev
-
Visit the App
Open your web browser and go to
http://localhost:3000
to see the running app. -
Visit the Sanity CMS
To explore the Sanity CMS, navigate to
http://localhost:3000/studio
.