Skip to content

Commit

Permalink
Port 4000 in docs AB#26410
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben committed Mar 11, 2024
1 parent 585fd0c commit 1ea4d85
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ For IBF-dashboard

Suggestion: load everything through Docker, except IBF-dashboard. This has the benefit that changes in front-end code are immediately reflected, instead of having to rebuild.

- `docker compose up -d`
- `n`
- `cd interfaces/IBF-dashboard`
- `npm start`

Expand All @@ -113,16 +113,16 @@ are connected to a database-server). For setting up a fully working version of t
3. Post 1st batch of dynamic data to database

- by calling mock-endpoint
- see API documentation: http://localhost:3000/docs/#/scripts
- run for all countries and disaster-type at once: http://localhost:3000/docs/#/scripts/ScriptsController_mockAll
- or run for 1 country and 1 disaster-type: http://localhost:3000/docs/#/scripts/ScriptsController_mockDynamic
- see API documentation: http://localhost:4000/docs/#/scripts
- run for all countries and disaster-type at once: http://localhost:4000/docs/#/scripts/ScriptsController_mockAll
- or run for 1 country and 1 disaster-type: http://localhost:4000/docs/#/scripts/ScriptsController_mockDynamic
- or by having external pipeline make a call to IBF-system

### Installation result

These commands will install the IBF-system with listeners at,

1. [localhost:3000/docs](http://localhost:3000/docs) for the API-service documentation
1. [localhost:4000/docs](http://localhost:4000/docs) for the API-service documentation
2. \*development only - [localhost:4200](http://localhost:4200) for the web
interface

Expand All @@ -133,7 +133,7 @@ Please read the troubleshoot guidlelines to support the insatllation of IBF in t

## Integration tests

### Cypress
### Cypress (THE USE OF CYPRESS IS DEPRECATED FOR IBF)

We use Cypress for automated integration testing in this project.
Installation:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
command: [ 'npm', 'run', 'start:dev' ]
environment:
- NODE_ENV=development
- LOCAL_PORT_IBF_SERVICE=${LOCAL_PORT_IBF_SERVICE}
ports:
- ${LOCAL_PORT_IBF_SERVICE}:3000
depends_on:
Expand Down
3 changes: 1 addition & 2 deletions services/API-service/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ export const API_PATHS = {
const baseApiUrl = process.env.EXTERNAL_API_SERVICE_URL + 'api/';
const rootUrl =
process.env.NODE_ENV === 'development'
? `http://localhost:${PORT}/`
? `http://localhost:${process.env.LOCAL_PORT_IBF_SERVICE}/`
: process.env.EXTERNAL_API_SERVICE_URL;
export const EXTERNAL_API = {
root: rootUrl,
rootApi: `${rootUrl}/api`,
whatsAppStatus: baseApiUrl + API_PATHS.whatsAppStatus,
whatsAppIncoming: baseApiUrl + API_PATHS.whatsAppIncoming,
eventMapImage: baseApiUrl + API_PATHS.eventMapImage,
Expand Down

0 comments on commit 1ea4d85

Please sign in to comment.