can i run my play project whith react js in port 9000 · Issue #15 · playframework/play-java-react-seed · GitHub
Skip to content

can i run my play project whith react js in port 9000 #15

Open

Description

@jaatafaa

i have version 1 for my application , who the front end files are .scala.html in directory /app/views.
and now i want to use react js for another front end files for my project.
It s is possible?
can i integrate front end file with react (/ui/src/*)
and all run in port 9000 ?

Thanks in advance

Activity

  1. kaybarax commented on Dec 4, 2020

    @kaybarax

    Yes you can do that if you would like to.

  2. jaatafaa commented on Dec 4, 2020

    @jaatafaa
    Author

    how ? my project run in port 3000 and load data from back end play java , but i can t see my front end who was is /app/views/
    i just want see my front end in java play and the new front in /ui/src

  3. kaybarax commented on Dec 4, 2020

    @kaybarax

    Your original frontend of /app/views/ should be running from your default port e.g. 8080.
    So if you have an index.scala.html view, it should be rendering on that port. And your integrated react application can and will run alongside on port 3000

  4. jaatafaa commented on Dec 4, 2020

    @jaatafaa
    Author

    according to your explanation I must have two ports for my application and this is what I do not want, because it requires two servers (java and node).
    now when i run my application, it turn on port 3000 , it s now the default port , and i cant render all front who is in /app/views/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions