Comments (8)
Could you imaging doing this on the webserver level? So, e.g. nginx handles all requests. When it matches
/api
it gets redirected to port 3201 (HTTP server in the backend), where all other routes would be lead to 4200 (Angular). This would sound easier to me as we could deploy backend and frontend completely independent of each other, and plug them together using the webserver.
I don't see anything speaking against that.
from digital-fuesim-manv.
trying to get it into docker
from digital-fuesim-manv.
@ClFeSc what is your take about putting it into docker (at this stage)?
from digital-fuesim-manv.
I don't think it'd be a problem. We can just build everything and start it (from the dist, so not the watch modes) and expose the ports.
from digital-fuesim-manv.
During development, we are using angular's development server via ng serve
. This server is not intended for production use.
Instead, the backend should:
- prefix all API routes with e.g.
/api
- serve the build frontend files from the root path
- redirect all unknown paths to the root path and serve the
index.html
(opening on/abc
would return the frontend, the frontend deals with the path (and possibly display a 404 page itself))
Look here for more information. This question could be helpful too.
from digital-fuesim-manv.
first beginning, using this guide: https://www.indellient.com/blog/how-to-dockerize-an-angular-application-with-nginx/
not tested, need to get my docker environment right
from digital-fuesim-manv.
During development, we are using angular's development server via
ng serve
. This server is not intended for production use. Instead, the backend should:* prefix all API routes with e.g. `/api` * serve the build frontend files from the root path * redirect all unknown paths to the root path and serve the `index.html` (opening on `/abc` would return the frontend, the frontend deals with the path (and possibly display a 404 page itself))
Look here for more information. This question could be helpful too.
Could you imaging doing this on the webserver level? So, e.g. nginx handles all requests. When it matches /api
it gets redirected to port 3201 (HTTP server in the backend), where all other routes would be lead to 4200 (Angular). This would sound easier to me as we could deploy backend and frontend completely independent of each other, and plug them together using the webserver.
from digital-fuesim-manv.
- pass environment flags (whether production or not) to immer, socket.io, etc. (or make sure they use the Node environment)
from digital-fuesim-manv.
Related Issues (20)
- Add log markers to charts
- Add UI to filter logs
- (Many issues in one) Add log generation to all reducers
- Everything that could have been reported, independent of radiograms
- All radiograms: Logs for both accepted and done
- Track a Vehicle
- A lot of Actions
- Selecting a vehicle twice for transfer to hospital can crash the server
- Track a patient
- Add identity to patients
- Simulation does not continue if vehicles are automatically distributed to transfer points and a TO is active
- allow adding custom vehicle templates HOT 1
- add RTW+NEF vehicle combination HOT 1
- Fix permission rights in radiogram.ts and simulated-region.ts
- update packages (dependency CI fails)
- Bug server starting database (importing exercises) - Radiogram
- Importing "exercise-state-2022-05-31-workshop-babz-groรes-szenario.json" results in JS Heap going out of memory (no user feedback given)
- Add accepting to terms and privacy policy before entering an exercise
- Add log field and helpers for StatisticsService
- Add UI to display stream of logs in statistics overview
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digital-fuesim-manv.