Code Monkey home page Code Monkey logo

eshop-api's Introduction

eshop-api

Eshop API allows you to manage prices of products including and excluding VAT rates for different products and countries. It provides endpoints for creating, retrieving, and updating VAT rates, as well as retrieving information about locales, products, and countries.

Prerequisites

Before running this Symfony project, make sure you have the following prerequisites installed on your system:

  • PHP 8.1
  • Composer 2.6
  • Docker

Installation

To install Eshop API using GitHub, follow these steps:

  • Clone the repository by running the following command:
    git clone https://github.com/ZabFTFT/eshop-api.git
  • Change to the cloned repository directory by running:
    cd eshop-api
  • Install the required packages by running:
    composer install
  • Set the required environment variables in .env file(use .env.sample)
  • Build the Docker image by running:
    docker-compose up -d 
  • Apply the database migrations by running:
    docker exec -it api-web bash
    php bin/console doctrine:migrations:migrate
    
    If you want populate db with initial data:
    php bin/console app:populate-db
    
    exit
  • To get access of API documentation use next endpoint:
    https://localhost:8080/api/doc
  • To stop Docker containers:
    docker-compose down

Features

  • API documentation at /api/doc
  • Management of products,VAT rates, countries and locales
  • Retrieve Product VAT information with locale query param
  • Creation of Countries with Locales
  • Creation of Products
  • Creation of Locales
  • Creation of VAT rates

Demo

docs.png

eshop-api's People

Watchers

Vlad Zabolotnyi 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.