title | aliases | tags | created | updated | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Environment Configuration |
|
|
2024-12-28 |
2024-12-28 |
This guide covers the environment configuration requirements and setup for BootHillGM development.
- Node.js v18.17 or higher
- npm v9.x or higher
- yarn (optional)
- Git
- VS Code (recommended)
- Chrome/Firefox Developer Tools
NEXT_PUBLIC_GEMINI_API_KEY=your-api-key
NEXT_PUBLIC_API_ENDPOINT=http://localhost:3000/api
NODE_ENV=development
NEXT_PUBLIC_GEMINI_API_KEY=production-api-key
NEXT_PUBLIC_API_ENDPOINT=https://api.boothillgm.com
NODE_ENV=production
- ESLint
- Prettier
- TypeScript and JavaScript Language Features
- Tailwind CSS IntelliSense
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
- Clone the repository
- Copy
.env.example
to.env.local
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Node version mismatch
- Solution: Use nvm to switch to the correct version
- Missing environment variables
- Solution: Verify all required variables in
.env.local
- Solution: Verify all required variables in
- Port conflicts
- Solution: Change port in
next.config.mjs
- Solution: Change port in
- [[./setup|Development Setup]]
- [[./deployment|Deployment Guide]]
- [[../architecture/next-js-setup|Next.js Setup]]
- [[./contributing|Contributing Guide]]