Code Monkey home page Code Monkey logo

Comments (4)

yohangz avatar yohangz commented on May 10, 2024 1

@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.

yohangz avatar yohangz commented on May 10, 2024

@bravegag you can run the project via sbt run command.

from play-scala-angular-seed.

bravegag avatar bravegag commented on May 10, 2024

@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.

bravegag avatar bravegag commented on May 10, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.