Sitecore JSS Copilot - Setting up the tool locally
- Sridharan Padmanabhan
- Dec 3, 2024
- 1 min read
Updated: Dec 13, 2024
Follow these steps to get your development environment set up:
Clone the repository
Navigate to the project directory
cd SitecoreCodeConversionGenAI
Install dependencies
npm install
Build the project
npm run build
Set up environment variables You can either use OpenAI Gpt-4o or Anthropic Claude 3.5 Sonnet or both, first you need to get API keys for each:
Create a .env.local file in the root directory
Add your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_here
Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
Note: You can get the OpenAI API key from here: https://platform.openai.com/ or Anthropic API key from here: https://console.anthropic.com/
Start the development server
npm run dev
Open http://localhost:3000 in your browser to see the application in action!

Comments