Spaces:
Paused
Paused
File size: 1,167 Bytes
4efde5d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# Kortix Frontend
## Quick Setup
The easiest way to get your frontend configured is to use the setup wizard from the project root:
```bash
cd .. # Navigate to project root if you're in the frontend directory
python setup.py
```
This will configure all necessary environment variables automatically.
## Environment Configuration
The setup wizard automatically creates a `.env.local` file with the following configuration:
```sh
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000/api
NEXT_PUBLIC_URL=http://localhost:3000
NEXT_PUBLIC_ENV_MODE=LOCAL
```
## Getting Started
Install dependencies:
```bash
npm install
```
Run the development server:
```bash
npm run dev
```
Build for production:
```bash
npm run build
```
Run the production server:
```bash
npm run start
```
## Development Notes
- The frontend connects to the backend API at `http://localhost:8000/api`
- Supabase is used for authentication and database operations
- The app runs on `http://localhost:3000` by default
- Environment variables are automatically configured by the setup wizard
|