Comments (4)
@bravegag it is mandatory to run NodeJs server in the background because we are using serve forntend and reverse proxy the backend service hosted via play server. All the details about this process are documented in the article.
I can't view that job details, seems like I'm not authorized.
from play-scala-angular-seed.
@bravegag you can run the project via sbt run
command.
from play-scala-angular-seed.
@yohangz only running sbt run
doesn't answer my question, that's the first thing I did. sbt run
triggers NodeJs and runs it in 0.0.0.0:4200
I am asking how to run without NodeJs.
btw Would you be interested in this?
https://www.upwork.com/ab/applicants/1138388509062459392/job-details
from play-scala-angular-seed.
@yohangz in another thread #2 (comment) you mentioned that the JsNode was optional and only required
on watch mode
Anyway, I realized that I'm after a different integration solution which in your article corresponds to:
2| Build both backend and frontend in the same project: Use scala views to expose frontend entry point and communicate with backend using the REST interface.
Pros:
Play activator associated commands (run, build, publish, etc..) to triggers frontend tasks associated (no need to worry how things get wired up). No more CORS hassle, secure out of the box. Easy CI/CD integration.
Cons:
Have to manage frontend code in multiple places (index html within scala views and rest of the code in frontend sub directory). Development time experience is bad (Hard to get watch task working properly). AoT build and other optimization implementation is hard. No clear separation between frontend and backend code. Frontend cannot be deployed in a CDN directly (It is technically feasible using a reverse proxy).
Do you have an Upwork account? If so please PM the link to your profile to my username [@hotmail.com]. I would like you to make a new Seed that corresponds to your point 2 in the article including Frontend cannot be deployed in a CDN directly (It is technically feasible using a reverse proxy).
? I will help too (in addition to the paid work ofc).
This new solution seed for point 2 as I see it will require placing all Angular artifacts under app/assets
and creating an angular system from scratch systemjs.config.js
an example here for Angular 6: https://medium.com/@einssoft.com/pavel-m-for-make-this-example-run-under-the-latest-angular-6-version-i-had-to-import-e8967b0f1310
This new solution seed can be an Angular 7 improved version of https://github.com/joost-de-vries/play-angular-typescript.g8/tree/master/src/main/g8 taking advantage of everything you did in the article and this seed.
from play-scala-angular-seed.
Related Issues (11)
- Windows 10 ng server stucks HOT 2
- [Question] How to run backend tests only? HOT 5
- Use of Redirect HTTPS Filter HOT 1
- Play 2.8 should be Scala 2.13? HOT 1
- deploy to heroku and/or create docker image HOT 2
- Action required: Greenkeeper could not be activated 🚨
- ADD EXAMPLE FOR POST REQUEST HOT 2
- Regarding other framework HOT 2
- A thanks, not an issue HOT 1
- Compile error, method afterStarted overrides nothing HOT 1
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 play-scala-angular-seed.