Skip to content

RESTful web services in codeigniter / ReactJS Single Page App Client

License

Notifications You must be signed in to change notification settings

mmaguero/ProductsWS-RESTFul-and-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful web services in codeigniter / ReactJS Single Page App Client


RESTful web services

Api | Products

GET

All, http://localhost/restful-services-in-codeigniter/index.php/api/products/ By id, http://localhost/restful-services-in-codeigniter/index.php/api/productById/id/1

POST

New, http://localhost/restful-services-in-codeigniter/index.php/api/addProduct

Api2 | Categories

GET

All, http://localhost/restful-services-in-codeigniter/index.php/api2/categories/ By id, http://localhost/restful-services-in-codeigniter/index.php/api2/categoryById/id/1

POST

New, http://localhost/restful-services-in-codeigniter/index.php/api2/addCategory Set Product/Category, http://localhost/restful-services-in-codeigniter/index.php/api2/addProductCategory

Source: https://programmerblog.net/create-restful-web-services-in-codeigniter/


ReactJS Single Page App Client

Dev

http://localhost:3000/ (npm start)

Build

http://localhost/ (see directions below)

Source: https://github.com/ericvicenti/intro-to-react


Tools


Content

  • htdocs
  • restful-services-in-codeigniter
  • static
  • files of 'npm build'
  • SPA_Products
  • src
  • build
  • node_modules
  • public
  • db.sql (MySQL schema and data populate)

Directions

  • Install XAMPP and initialize services
  • Run db.sql in MySQL
  • Merge folder htdocs to XAMPP_folder_instalation/htdocs
  • Copy SPA_Products/build content to XAMPP_folder_instalation/htdocs
  • Explore links above

Disponible en https://github.com/mmaguero

Releases

No releases published

Packages

No packages published

Languages