• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use ReactJS with Codeigniter?

#1
Hi,

I want to implement reactjs view in codeigniter.
I can't find a good tutorial how to use reactjs with codeigniter

When i issue, npm start, the view is started in http://localhost:8080
But php coding is loaded in http://localhost.

These two are running in different ports. How can i use these reactjs view now in codeigniter? 
Please guide

Thanks
Reply

#2
(11-26-2017, 11:51 PM)mahesh2150 Wrote: Hi,

I want to implement reactjs view in codeigniter.
I can't find a good tutorial how to use reactjs with codeigniter

When i issue, npm start, the view is started in http://localhost:8080
But php coding is loaded in http://localhost.

These two are running in different ports. How can i use these reactjs view now in codeigniter? 
Please guide

Thanks

Create the react components and add them in your js file, then embed them within  your php view
Reply

#3
hi guys i just create simple React Frontend  scaffolding for codeigniter and other framework...
Github Repository:Github Repository

how to use
==========
1: Clone/download this Repository github

2: run command npm install && npm run watch

3: change the .htaccess file RewriteBase

4: that's it Smile Big Grin 

note: this repository uses codeigniter 3.1.11...

if you want other version of codeigniter, download and replace Application and system folders with newer ones

node js is required  ... download it from nodejs



ok guy  have a nice day ..... happy coding with CodeIgniter Heart Heart Heart
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.