Code Monkey home page Code Monkey logo

coffee-shop-app's Introduction

About

This is a simple order managing system built using Laravel v7.
The API authentication is done using Laravel Sanctum.

Below are the modules:

  • Customer
  • Product
  • Order
  • Wallet
  • Admin Panel to Manage
    • Customers
    • Orders
    • Products

Pre Requesites

  • PHP 7.2 or greater
  • Composer
  • MySQL

Installation

  • Clone the repository to your machine
  • Run composer install command to install all dependencies
  • Run npm install command to install node dependencies
  • Run npm run dev to compile all assets
  • Create 2 databases. One for the app and one for testing purposes.
  • Copy .example.env file and rename it to .env
  • Make sure the database credentials are updated in .env file (Both databases must have same username & password)
  • Update the testing database's name at DB_TEST_DATABASE in .env file
  • Run php artisan key:generate to generate app key
  • Run php artisan config:cache
  • Run composer update to update all dependencies to latest (OPTIONAL)
  • Run php artisan config:clear
  • Run php artisan test to perform all the tests
  • Run php artisan optimize to optimize the whole app
  • Run php artisan migrate --seed

App is Ready!

Run php artisan serve to start the app.
Note: MySQL server must be up before running this command

Credentials

Access the app using the below credentials

API Documentation

The API documentation can be found here.

Todo

  • Add test cases for admin routes

coffee-shop-app's People

Contributors

degeta10 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.