Giter VIP home page Giter VIP logo

larafood's Introduction

LaraFood

License: MIT

The DDD architecture was implemented based on the article written by Brent on October 17, 2019 - Domain-oriented Laravel . The following patterns were also used: repository pattern, actions and use cases, data transfer objects. Based on the LaraFood course project - EspecializaTi Academy.

Larafood

Technologies

Application structure

src
  └ Application
  └ Domains
    ├── Domain
    │   └── Actions
    │   └── UseCases
    │   └── DTOs
    │   └── Contracts
    │   └── Enums
    │   └── Exceptions
  └ Infrastructure
    │   └── Persistence
  └ Interfaces
    │   └── Console
    │   └── Http

Installation

  1. Clone the project
  git clone https://github.com/luiz-moura/larafood.git
  1. Create .env
  cp .env.example .env
  1. Start the server in background
  docker-compose up -d
  1. Create aliases for sail bash path
  alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
  1. Generate key
  sail artisan key:generate
  1. Install composer dependencies
  sail composer install
  1. Install NPM dependencies
  sail npm install && sail npm run dev
  1. Create tables and fill populate with fictitious data
  sail artisan migrate:fresh --seed

Commands

Stop the server

  sail stop

All commands sail

  sail help

Run tests

  sail test

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

  • DB_USERNAME
  • DB_PASSWORD
  • SENTRY_LARAVEL_DSN

API documentation (Swagger)

http://localhost:80/api/documentation

🔗 Links

linkedin

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.