Skip to content

El administrador de JAM12E necesita un sistema que le permita realizar la venta de sus productos de mercadería online. El sistema deberá permitir permitir registrar cada producto así como también administrar las cuentas de sus clientes, quienes también deberán identificarse para realizar compras de los artículos de mercadería.

Notifications You must be signed in to change notification settings

larangogon/JAM12E

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAM12E

Installation

  • Install a server side application. Example: Xampp, Wamp, Lampp, Laragon, etc.

  • Clone the repository on the root. (htdocs for xampp, www for laragon and wamp, etc).

  • Open terminal and run the following commands:

    • -cd JAM12E
    • -composer install
    • -npm install
    • -cp .env.example .env
  • Create database JAM:

    • -mysql -u root
    • -create database jam;
    • -exit
    • -php artisan migrate --seed
    • -php artisan passport:install
  • Create metrics:

    • -mysql -u root
    • -use jam
    • -call metrics_generate('2020-10-20', '2021-01-11');
    • -call cancelled_metrics_generate('2020-10-20', '2021-01-11');
    • -exit
  • Create database test:

    • -mysql -u root
    • -create database testing_laravel;
    • -exit
  • Open terminal and run the following commands-test:

    • -cp .env.testing.example .env
    • -php artisan test
  • To finish and deploy the application, run the command:

    • -php artisan optimize:clear
    • -php artisan passport:install
    • -php artisan storage:link
    • -php artisan serve
  • Login Admin.

  • Job and commands

    • -php artisan queue:work
    • -php artisan payment:orders
    • -php artisan report:excel

API

  • Login of a user:
  • Auth:
  • -We can query protected routes by sending the token that we obtained earlier.
  • Logout:
  • All product:
  • -We can query protected routes by sending the token that we obtained earlier when authenticating. If we make a GET request to the product route and with our token, the list of products that is stored in the database will be displayed. http://127.0.0.1:8000/api/auth/product
  • Show product:
  • -See detail of a single product We can query protected routes by sending the token that we obtained earlier when authenticating. If we make a GET request to the product path plus the product id and with our token, we will see the product information with the required id. http://127.0.0.1:8000/api/auth/product/1
  • Delete a product:
  • -We can query protected routes by sending the token that we obtained earlier when authenticating. If we make a DELETE request to the product path plus the product id and with our token, this product will be eliminated. http://127.0.0.1:8000/api/auth/product/1
  • Edit product:
  • -We can query protected routes by sending the token that we obtained earlier when authenticating. If we make a PUT request to the product path, the id and with our token, it will edit a product. http://127.0.0.1:8000/api/auth/product/1
  • Create product:
  • -We can query protected routes by sending the token that we obtained earlier when authenticating. If we make a POST request to the logout path with our token, it will be invalidated. http://127.0.0.1:8000/api/auth/product/

About

El administrador de JAM12E necesita un sistema que le permita realizar la venta de sus productos de mercadería online. El sistema deberá permitir permitir registrar cada producto así como también administrar las cuentas de sus clientes, quienes también deberán identificarse para realizar compras de los artículos de mercadería.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published