Coder Social home page Coder Social logo

loop-webshop's Introduction

Setup

Clone the repo

git clone https://github.com/sarveshcchauhan/loop-webshop

Install the dependencies

composer install

Now generate an application key for your project and steup database name inside your .env file and create the database and run migration file

php artisan key:generate
php artisan migrate

Now to export the customer and products data to database you can see the progress bar for the completed data also check the Logs file for the inserted data in storage/logs

php artisan import:customer
php artisan import:product

Once all the data is inserted Check the APIs

APIs Endpoints

Add your server name ie. http://127.0.0.1:8000/ or localhost in below ENDPOINTS

To test the EndPoints open Postman add the method and url in Body tab choose x-www-form-urlencoded and add parameters over there

Method Endpoint Description Parameters
POST /order create a new order customer => email, Get email from customer table to create orders
POST /order/show show the order based on id id => id, Pass id parameter to get the specified order
PUT /order Update the specified order id => id, customer => email
DELETE /order Delete the specified order id => id
POST /order/{id}/add Add products to specified order if payed is null by default payed is NULL product_id => product_id
POST /order/{id}/pay Update the order of payed based on https://superpay.view.agentur-loop.com/pay result

loop-webshop's People

Contributors

sarveshcchauhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.