Git Product home page Git Product logo

simpleshopapi's Introduction

Simple Shop Api

An application for managing categories and their products, which in this case are research, but you can create your own product context

Table of Contents

Built With

Getting Started

To install the application you will need:

Installation

  1. Go to the folder where you want to create the project and clone the repository
git clone https://github.com/Janczur/SimpleShopApi.git .
  1. Go to /app directory
cd app
  1. Install dependencies
composer install
  1. Change environment variables to your needs
    (skip this part for default configuration)
    Information about configuring environment
    copy ".env" file to ".env.local.dev" and provide valid DB credentials
DATABASE_URL="mysql://symfony:[email protected]:3306/shop?serverVersion=mariadb-10.8.3&charset=utf8mb4"
  1. Run docker-compose to create database in container
docker-compose up
  1. Create database and run migrations
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate --no-interaction

Testing

Create test database if not exists

php bin/console doctrine:database:create --env=test
php bin/console doctrine:schema:create --env=test

For tests run in the main project directory

php bin/phpunit

Dummy data

If you want to populate database with dummy data run:

php bin/console doctrine:fixtures:load

It will create 5 Categories with 10 researches each and 10 researches without category

Development

To start local server type in your project directory

symfony serve

Api Documentation

Coming soon

To do

  • Move web server and php to docker
  • Add swagger documentation
  • Simplify installation process

Contact

Jan Przybysz - [email protected]

simpleshopapi's People

Contributors

janczur avatar

Watchers

 avatar writ3it 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.