Installation Guide
Get started with the AI SaaS template in just a few simple steps.
Prerequisites
- Node.js 18.0 or later
- npm (v7 or later), yarn, or pnpm
- Git
Quick Start
-
Clone the repository
git clone https://github.com/torqbit/ai-saas-template.git cd ai-saas-template -
Install dependencies
npm install # or yarn # or pnpm install -
Set up environment variables Create a
.env.localfile in the root directory:NEXT_PUBLIC_TORQBIT_API_KEY=your_api_key_here -
Run the development server
npm run dev -
Open your browser Visit http://localhost:3000 to see your application running.
Troubleshooting
- Port already in use: Try changing the port by running
PORT=3001 npm run dev - Dependency issues: Delete
node_modulesandpackage-lock.json, then runnpm installagain - Environment variables not loading: Ensure your
.env.localfile is in the root directory and properly formatted
Last updated on