Skip to content

NodeJs api with the purpose of make CRUD operations at prestashop webservice

Notifications You must be signed in to change notification settings

devgrunge/prestashop-api-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prestashop API REST with nodejs

Description

This API REST is developed using NodeJS to access Prestashop basic information (customers, products and orders).

Architecture

This API REST uses this technology:

NodeJS: to create API REST infrastructure with Express. Jade: to create API REST templates. Bootstrap: to improve templates design. MariaDB: database accessed. Prestashop 1.7: client e-Commerce. Install and run Follow this steps to install and run this project:

Install NodeJS in your server. Download this project. Execute npm start command into project folder. Now a webservice is running on port 3000 (by default). Configure To configure this API edit ./models/connection.js file and type your database configuration data.

Usage: GET

You can access to all fields using next syntax:

Customers: http://localhost:3000/customers

Products: http://localhost:3000/products

Orders: http://localhost:3000/orders

You can access to an specific field using syntax http://localhost:3000//:id

Customer with id 1: http://localhost:3000/customers/1

Products with id 3: http://localhost:3000/products/3

Orders with id 7: http://localhost:3000/orders/7

Usage: POST (INSERT)

You can insert a new field using next forms:

New customer: http://localhost:3000/customers/post

New product: http://localhost:3000/products/post

New order: http://localhost:3000/orders/post

After insert a new field, you will be redirected to view all information about this customer, order or product.

Usage: PUT (UPDATE)

You can update a new field using next forms typing an id:

Update customer: http://localhost:3000/customers/put

Update product: http://localhost:3000/products/put

Update order: http://localhost:3000/orders/put

After update a new field, you will be redirected to view all information about this customer, order or product.

Usage: DELETE

You can delete a new field using next forms typing an id:

Delete customer: http://localhost:3000/customers/delete

Delete product: http://localhost:3000/products/delete

Delete order: http://localhost:3000/orders/delete

About

NodeJs api with the purpose of make CRUD operations at prestashop webservice

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages