Skip to content

Commit

Permalink
Changed server port from 5001 to 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
pkirilin committed Jan 3, 2024
1 parent 966b669 commit b60b5b1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ This information can be extremely useful for people who want to keep track of en
yarn start
```

1. Navigate to <https://localhost:5001>
1. Navigate to <https://localhost:8080>

## How to run frontend without backend

Expand Down Expand Up @@ -93,7 +93,7 @@ VITE_APP_FAKE_AUTH_LOGIN_ON_INIT=true

Name | Type | Description
-------------------------------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
`VITE_APP_API_URL` | `string` | Specifies a backend API base URL without a trim slash, e.g. `https://localhost:5001`
`VITE_APP_API_URL` | `string` | Specifies a backend API base URL without a trim slash, e.g. `https://localhost:8080`
`VITE_APP_AUTH_CHECK_INTERVAL` | `number` | Specifies the auth status check interval in milliseconds to ensure that users with expired cookies will not be able to use the application without refreshing the page in the browser. Not used if `VITE_APP_FAKE_AUTH_ENABLED` is `true`
`VITE_APP_DEMO_MODE_ENABLED` | `boolean` | Enables demo mode. In demo mode, some features related to file system or external integrations are disabled
`VITE_APP_FAKE_AUTH_ENABLED` | `boolean` | Setups fake authentication flow without using a backend server and OAuth Identity provider. Used for local development
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"FoodDiary.API": {
"commandName": "Project",
"launchBrowser": false,
"applicationUrl": "https://localhost:5001",
"applicationUrl": "https://localhost:8080",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_APP_API_URL=https://localhost:5001
VITE_APP_API_URL=https://localhost:8080
2 changes: 1 addition & 1 deletion src/frontend/src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const API_URL = import.meta.env.VITE_APP_API_URL;
export const API_URL = import.meta.env.VITE_APP_API_URL ?? 'https://localhost:8080';

export const AUTH_CHECK_INTERVAL = import.meta.env.VITE_APP_AUTH_CHECK_INTERVAL
? Number(import.meta.env.VITE_APP_AUTH_CHECK_INTERVAL)
Expand Down
12 changes: 5 additions & 7 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ version: "3.9"
services:
db:
ports:
- "10100:5432"
- "8090:5432"
image: postgres:12.2-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: FoodDiary
PGPORT: 10100
PGPORT: 8090
healthcheck:
test: ["CMD-SHELL", "pg_isready -p 10100 -U postgres"]
test: ["CMD-SHELL", "pg_isready -p 8090 -U postgres"]
interval: 10s
retries: 5
web:
Expand All @@ -21,18 +21,16 @@ services:
context: ../
dockerfile: Dockerfile
ports:
- "10000:443"
- "8080:443"
environment:
- ASPNETCORE_URLS=https://+:443
- ASPNETCORE_Kestrel__Certificates__Default__Password=test
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/app.pfx
- ConnectionStrings__Default=User ID=postgres;Password=postgres;Host=db;Port=10100;Database=FoodDiary
- ConnectionStrings__Default=User ID=postgres;Password=postgres;Host=db;Port=8090;Database=FoodDiary
- Auth__AllowedEmails__0=test.user@gmail.com
- Google__ExportFolderId=test_folder_id
- GoogleAuth__ClientId=test_client_id
- GoogleAuth__ClientSecret=test_client_secret
- VITE_APP_API_URL=https://localhost:10000
- VITE_APP_AUTH_CHECK_INTERVAL=14400000 # 4 hours
volumes:
- ../certs:/https:ro
entrypoint: >
Expand Down

0 comments on commit b60b5b1

Please sign in to comment.