Coder Social home page Coder Social logo

alainmucyo / shop-app-backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 95 KB

The Online Shopping Platform is a robust online store designed to track which items are added to a basket but removed before checkout. This data is beneficial for the sales team to offer targeted discounts. The application is built with Laravel 8 and MySQL.

Home Page: https://alainmucyo-shop.fly.dev

Shell 0.68% Dockerfile 2.30% PHP 84.22% JavaScript 0.39% Blade 12.41%
laravel php shop

shop-app-backend's Introduction

Online Shopping Platform

The Online Shopping Platform is a robust online store designed to track which items are added to a basket but removed before checkout. This data is beneficial for the sales team to offer targeted discounts. The application is built with Laravel 8 and MySQL.

Getting Started

  1. Git clone this repository and cd into the project directory:

git clone https://github.com/alainmucyo/shop-app-backend.git cd shop-app-backend

Pre-requisites

  • PHP 8.2 or greater
  • Laravel 8
  • MySQL
  • Composer
  • Docker (optional)

Installation

  1. Install PHP if you don't have it installed.
  2. Install Composer if you don't have it installed.
  3. Install MySQL and create a new database for the project.
  4. Install Docker and Docker Compose (optional).

Configuring the Application

  1. Copy .env.example to .env in the project root: cp .env.example .env
  2. Set your database credentials in the .env file.
  3. Run composer install to install PHP dependencies.
  4. Run php artisan key:generate to generate your application key.
  5. Run php artisan migrate to run the database migrations.
  6. Run php artisan db:seed to seed the database with test data.

Running the Application

  1. Run php artisan serve to start the server. The API will be running at http://localhost:8000.

Running the Tests

  1. Set your testing database credentials in the .env.testing file.
  2. Run php artisan migrate --env=testing to run the database migrations for testing.
  3. Run php artisan test to run the tests.

API Documentation

API doc can be accessed here: https://documenter.getpostman.com/view/11889963/2s93sjUUfw

  • Admin user:

  • Email: [email protected]

  • Password: password

  • Role: Allows creation, deletion, and updating of products.

  • Sales user:

  • Email: [email protected]

  • Password: password

  • Role: Allows creation of products.

Deployment

The application is designed to be easily deployed to Fly.io. The Dockerfile provided is tailored for Fly.io deployment. Follow the instructions in the official Fly.io documentation.

You can access the deployed application at https://alainmucyo-shop.fly.dev.

Built With

  • PHP 8.2
  • Laravel 8
  • MySQL
  • Docker

Authors

Licence

This software is published under the MIT licence.

shop-app-backend's People

Contributors

alainmucyo 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.