Giter VIP home page Giter VIP logo

pet-shop's Introduction

Pet Shop

Laravel Tests Status Larastan Static Code Coverage Status PHP Insights Code Quality

This repository contains APIs for the Pet Shop (eCommerce). The project uses docker compose to minimise the setup process. Each directory in the project signifies a single function and is mounted in the appropriate containers.

Directory Structure

build/ directory

The build directory contains instructions for building a container. It provides us with a logical separation of build steps.

config/ directory

The config directory contains configuration attached to containers. It helps us to persist the configuration even when the containers are rebooted.

data/ directory

The data directory contains container related data. It helps us to persist the application specific data even when the containers are rebooted.

repository/ directory

The repository directory will contain the Laravel application.

Note: Please note that this docker setup should only be used for development purposes and by no means should be deployed to production.

System requirements

  • Docker
  • Docker Compose
  • Port 80 should be available for Nginx
  • Port 3306 should be available for MySQL

Infrastructure

  • Nginx
  • PHP 8.2
  • MySQL 8.1
  • Laravel 10

Continuous Integration

  • Laravel Tests
  • Larastan Static Code Analysis

Setup Guide

1. Clone the repository to your local folder

2. Run with docker-compose

Execute the below command:

docker-compose exec up -d

3. Connect to the container for further setup

docker-compose exec php8 bash

4. Copy .env.example to .env

cp .env.example .env

5. Run Composer Install

composer install

6. Generate Application Keys

php artisan key:generate

Keys for JWT can be generated using:

php artisan jwt:keys

7. Run Migrations

php artisan migrate

8. Choose your localhost or virtual host configuration.

Localhost: http://localhost

Virtual Host: http://api.pet-shop.test

Note: Please make sure the host file has the correct entry.


Thank you!

pet-shop's People

Contributors

siddhantfriends avatar

Watchers

 avatar

pet-shop's Issues

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.