A simple e-commerce assignment
- 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- Admin panel credentials
email: [email protected]
password: password- Authentication
http://localhost:8080/v1/auth/loginhttp://localhost:8080/v1/auth/register- Products
http://localhost:8080/v1/productshttp://localhost:8080/v1/products/{id}- Cart
http://localhost:8080/v1/cart- Orders
http://localhost:8080/v1/orders