Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure webpack for react app #3

Open
ravi11o opened this issue Mar 17, 2020 · 0 comments
Open

configure webpack for react app #3

ravi11o opened this issue Mar 17, 2020 · 0 comments
Labels
client client side issue

Comments

@ravi11o
Copy link
Contributor

ravi11o commented Mar 17, 2020

Setup react

  • do not use create-react-app
  • configure webpack to create react bundles on same port
  • render react bundle on one of ejs templates
  • check out https://github.com/AltCampus/react-node-boilerplate for further reference
  • display Welcome to Capstone Project on react home page

Now we should have

  • /api/v1 - serving api routes
  • / - serving react page

Any route other than /api/v1 should render react on webpage.

@ravi11o ravi11o added the client client side issue label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client client side issue
Projects
None yet
Development

No branches or pull requests

1 participant