Files
2026-05-02 08:52:08 +03:30

52 lines
813 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 🚀 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.