suna/frontend/README.md

58 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2025-08-09 09:23:08 +08:00
# 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
```
2025-03-30 14:48:57 +08:00
2025-04-16 01:20:15 +08:00
## Getting Started
2025-03-30 14:48:57 +08:00
Install dependencies:
```bash
npm install
```
2025-06-16 01:43:21 +08:00
Run the development server:
2025-03-30 14:48:57 +08:00
2025-04-16 01:20:15 +08:00
```bash
npm run dev
```
2025-03-30 14:48:57 +08:00
2025-06-16 01:43:21 +08:00
Build for production:
2025-03-30 14:48:57 +08:00
2025-06-16 01:43:21 +08:00
```bash
npm run build
```
2025-03-30 14:48:57 +08:00
2025-06-16 01:43:21 +08:00
Run the production server:
2025-03-30 14:48:57 +08:00
2025-06-16 01:43:21 +08:00
```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