react-expressjs | compact boilerplate for ReactJS project | Router library
kandi X-RAY | react-expressjs Summary
kandi X-RAY | react-expressjs Summary
Simple and compact boilerplate for ReactJS project with expressJS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-expressjs
react-expressjs Key Features
react-expressjs Examples and Code Snippets
Community Discussions
Trending Discussions on react-expressjs
QUESTION
I am trying to deploy this react project https://github.com/tahnik/react-expressjs and use apache server for static file. The example that I know that is working is on Angular, on angular we just run ng build --prod and this will create a dist folder where there is an index.html. On apache, we just serve the dist folder. But here we use React with webpack that not contain dist folder with an index.html so I don't know how to do that on your project.
PS : Sorry for my english, it's not my native language
Thanks
...ANSWER
Answered 2018-Aug-07 at 13:29There is no index.html
because it is a server side rendered application. In the repository you posted, the whole project is meant to be running as a server side application, there is no index.html file. Everything is served from express as you can see here.
When you run npm run build:client
it just creates the js/css files. You would need to:
- Create your own html and add css and js to it.
- Add
html-webpack-plugin
to generate the html with all the css/js files already on it.
If you don't want to do that. You simply run npm start
after your npm run build
and the server will start. now you need to proxy from apache to this addr:port
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-expressjs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page