Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

local run

tasnim25454aac1791
diff --git a/frontend/src/utilites/config.ts b/frontend/src/utilites/config.ts
index 822fb415c..3c5bda272 100644
--- a/frontend/src/utilites/config.ts
+++ b/frontend/src/utilites/config.ts
@@ -8,6 +8,6 @@ export const getConfig = (key: ConfigKeys): string | undefined => {
return serverEnv[key] as string | undefined;
}
- const clientEnv = typeof window !== "undefined" && window.hievents ? window.hievents : {};
+ const clientEnv = typeof window !== "undefined" && window.hievents ? window.hievents : {...import.meta.env};
return clientEnv[key];
};
diff --git a/install locally/LOCAL.md b/install locally/LOCAL.md
index 3c61b1067..76d164e14 100644
--- a/install locally/LOCAL.md
+++ b/install locally/LOCAL.md
@@ -104,11 +104,34 @@ You should see the following screen when you open the browser and navigate to `h
### Frontend Setup
-1. Go to the `frontend` directory and install the dependencies, build the project, and start the server by running the following commands:
+1. Go to the `frontend` directory and create a `.env` file by copying the `.env.example` file:
```bash
cd frontend
+cp .env.example .env
+```
+
+2. Configure the .env file with the following settings:
+
+```bash
+VITE_API_URL_CLIENT=http://localhost:8000
+VITE_API_URL_SERVER=http://localhost:8000
+VITE_FRONTEND_URL=http://localhost:5678
+
+VITE_STRIPE_PUBLISHABLE_KEY=pk_test_51Ofu1CJKnXOyGeQuDPUHiZcJxZozRuERiv4vQRBtCscwTbxOL574cxUjAoNRL2YLCumgC5160pl6kvTIiAc9mOeM0058KAWQ55
+```
+
+3. Install the project dependencies by running the following command:
+
+```bash
yarn install
-yarn build
-yarn start
```
+
+4. Run the following command to start the server:
+
+```bash
+yarn dev:csr
+```
+
+Now you can open the browser and navigate to `http://localhost:5678` to see the application running.
+