My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Rewriting a cakephp MVC app using React

arpan khare's photo
arpan khare
·Jul 27, 2016

I want to remove view folder of my cakephp app(.ctp files) and rewrite it using react.

As a beginner I am facing a few problems:

  1. A recommended way of using react is with webpack.Webpack provides it's own server.How can I use webpack(http://localhost:8000) along side nginx( http://my_local_app ).

  2. Do I need to do a webpack build everytime I make change.This is very time consuming.

  3. How can I use api of the app( http://my_local_app/users/getinfo ).There is no token based authentication.I want to use cakephp sessions and have no cross-origin issue while development.