Thanks to visit codestin.com
Credit goes to github.com

Skip to content

njugunamwangi/commerce

Repository files navigation

About Project

A simple e-commerce assignment

Tech Stack

Installation guide

  • Clone the repository
git clone https://github.com/njugunamwangi/commerce.git
  • On the root of the directory, copy and paste .env.example onto .env and configure the database accordingly
copy .env.example .env
  • Run migrations and seed the database
php artisan migrate --seed
  • Install composer dependencies by running composer install
composer install
  • Install npm dependencies
npm install
  • Generate laravel application key using
php artisan key:generate
  • Don't forget to run the application
npm run dev
  • Run the application
php artisan serve

Routes

Prerequisites

  • Admin panel credentials
email: [email protected]
password: password

API endpoints

  • Authentication
http://localhost:8080/v1/auth/login
http://localhost:8080/v1/auth/register
  • Products
http://localhost:8080/v1/products
http://localhost:8080/v1/products/{id}
  • Cart
http://localhost:8080/v1/cart
  • Orders
http://localhost:8080/v1/orders

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages