Commit 54354635 authored by Raphaël Flores's avatar Raphaël Flores
Browse files

Configure per app dev port for serving angular frontend code.

parent 42092cbb
......@@ -45,8 +45,8 @@ Then in the `frontend` directory, run `yarn` to download the dependencies.
Then run `yarn start` to start the app, using the proxy conf to reroute calls to `/api` to the backend.
The application will be available on:
- http://localhost:4200/rare-dev for RARe (runs with: `yarn start:rare` or simply `yarn start`)
- http://localhost:4200/wheatis-dev for WheatIS (runs with: `yarn start:wheatis`)
- http://localhost:4000/rare-dev for RARe (runs with: `yarn start:rare` or simply `yarn start`)
- http://localhost:4100/wheatis-dev for WheatIS (runs with: `yarn start:wheatis`)
## Build
......
......@@ -7,7 +7,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
Run `yarn start` or `yarn start:rare` for a dev server.
Navigate to `http://localhost:4200/rare`. The app will automatically reload if you change any of the source files.
To start another app, like WheatIS, you can run `yarn start:wheatis`, and go to `http://localhost:4200/wheatis`.
To start another app, like WheatIS, you can run `yarn start:wheatis`, and go to `http://localhost:4300/wheatis`.
## Build
......
......@@ -3,10 +3,10 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --configuration=rare",
"start:rare": "ng serve --configuration=rare",
"start:wheatis": "ng serve --configuration=wheatis",
"start:data-discovery": "ng serve --configuration=data-discovery",
"start": "ng serve --configuration=rare --port=4000",
"start:rare": "ng serve --configuration=rare --port=4000",
"start:wheatis": "ng serve --configuration=wheatis --port=4100",
"start:data-discovery": "ng serve --configuration=data-discovery --port=4200",
"build": "ng build --configuration=rare-production --no-progress",
"build:rare": "ng build --configuration=rare-production --no-progress",
"build:wheatis": "ng build --configuration=wheatis-production --no-progress",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment