You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know if what I want to do is possible.
I want to use some backend framework to store informations in Database.
And I would like to avoid make an API knowing that I will be the only one accessing this database.
So I tried to integrate create-react-app in my the project folder, it works well in development, I just had to add a CORS header filter in order to allow localhost:3000 (npm) to make request on localhost:9000 (Backend). And it works pretty well on development.
However, what I would ideally do, is to do npm run build get the JS file outputted, and insert this JS in my HTML file rather thank keeping the basic HTML ?
Activity
viankakrisna commentedon Jun 14, 2017
yes, you can do that with
asset-manifest.jsonthat is generated in build folder duringnpm run buildquick example using php:
gaearon commentedon Jun 22, 2017
That's right.