diff --git a/.qodo/history.sqlite b/.qodo/history.sqlite new file mode 100644 index 0000000..770235c Binary files /dev/null and b/.qodo/history.sqlite differ diff --git a/README.md b/README.md index 5aeed8f..490d0f3 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,11 @@ docker build -t calmerger-app . To start the container, use: ```bash -docker run -d --name calmerger -p 3000:3000 calmerger-app +docker run -d --name calmerger -p 3012:3012 calmerger-app ``` -This maps the container's port `3000` to the host system's port `3000`. The application will be accessible at [http://localhost:3000](http://localhost:3000). +This maps the container's port `3012` to the host system's port `3012`. The application will be accessible at [http://localhost:3012](http://localhost:3012). ### 3. Using Docker Compose (Optional) @@ -125,7 +125,7 @@ This generates a `coverage` report, showing how much of the codebase is tested. ## Usage -1. Open a web browser and navigate to `http://localhost:3000`. +1. Open a web browser and navigate to `http://localhost:3012`. 2. Click the **Add Calendar** button to add a new calendar. 3. Enter the Link Group Name, calendar URL, prefix, and override options (if needed). 4. Click the **Merge Calendars** button to generate the merged calendar. diff --git a/docker-compose.yml b/docker-compose.yml index 7f4245c..48829f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,14 @@ -version: '3.3' +version: "3.3" services: calmerge: build: . ports: - - "3000:3000" + - "3012:3012" environment: - NODE_ENV=production - - NODE_PORT=3000 + - NODE_PORT=3012 volumes: - ./calendar:/app/calendar - ./logs:/app/logs - restart: unless-stopped \ No newline at end of file + restart: unless-stopped diff --git a/dockerfile b/dockerfile index c05fe7c..0170535 100644 --- a/dockerfile +++ b/dockerfile @@ -14,7 +14,7 @@ RUN npm install --omit=dev COPY . . # Expose the port your application runs on (if applicable) -EXPOSE 3000 +EXPOSE 3012 # Command to run the application CMD ["node", "src/app.js"] diff --git a/src/app.js b/src/app.js index 217a7e6..003e498 100644 --- a/src/app.js +++ b/src/app.js @@ -1,6 +1,6 @@ import server from './server.js'; -const port = process.env.NODE_PORT || 3000; +const port = process.env.NODE_PORT || 3012; server.listen(port, () => { console.log(`Server started on port ${port}`); });