4
I have a front-end application consuming an Rails api, but I’m new to this idea of separating the front-end from the back-end, my api runs on localhost:3000, and my front is simply a folder that I go there manually and open my html page, i wanted to know how I run my front directly from the server ex: localhost:8000/front , if there is any way to play my front inside the Rails server on port 8080, or if I run on npm, I don’t want to use xammp or wamp,because when I deploy I don’t want to have a server for api and another for front, I want both on the same server but in different projects.
Do you have Python installed? Python has a module that creates a simple HTTP server for this type of test.
– Jéf Bueno
@Jéfersonbueno but that’s it , I want one that runs on the platform msm of Rails , if I run in python I will have to buy a server that supports python and Rails
– Jose Vieira Neto
I thought it was just for development.
– Jéf Bueno
Did you get an answer to your question?
– durtto
Hello @durtto, so guy if you are going to use the angular 2 has the angular-cli take a look, in case the 1 used without same server.
– Jose Vieira Neto
If you got an answer, put it, so it can help other people.
– durtto