52 lines
813 B
Markdown
52 lines
813 B
Markdown
# 🚀 Robin Nework New Client Setup
|
||
|
||
Follow these steps to run the frontend locally.
|
||
|
||
---
|
||
|
||
## 1️⃣ Install Dependencies
|
||
|
||
```bash
|
||
npm install
|
||
```
|
||
|
||
---
|
||
|
||
## 2️⃣ Create `.env` File
|
||
|
||
Create a `.env` file in the root directory and add:
|
||
|
||
```env
|
||
NEXT_PUBLIC_BACKEND_URL=api.robinnetwork.ir (for example)
|
||
NEXT_PUBLIC_BACKEND_URL_LOCAL=http://127.0.0.1:4000
|
||
```
|
||
|
||
⚠️ Make sure your backend server is running on port `4000`.
|
||
|
||
---
|
||
|
||
## 3️⃣ Run the Application
|
||
|
||
```bash
|
||
npm run build
|
||
npm start
|
||
```
|
||
|
||
---
|
||
|
||
## ✅ Application URL
|
||
|
||
After running the command, the app will be available at:
|
||
|
||
```
|
||
http://localhost:3000
|
||
```
|
||
|
||
---
|
||
|
||
## 📝 Notes
|
||
|
||
- Restart the server after changing environment variables.
|
||
- Ensure the backend is running before testing API requests.
|
||
- `NEXT_PUBLIC_` variables are exposed to the browser.
|