Giter Site home page Giter Site logo

shopping_cart_api's Introduction

Shopping cart API

Testing

Implementation of the API of a shopping cart, products and their categories.

The API documentation via Postman.

Setup

Development

.env.dist

All environment variables that are used in development are specified in the .env.dist file. This file is used in the docker-compose.dev.yml file and shell scripts.

Virtual environment

Firstly, you must install all necessary dependencies. For this, you should create a virtual environment. For instance, you may use a virtualenv:

$ virtualenv --python 3.10 venv

Afterwards, activate it:

$ . venv/bin/activate

Two requirements file exist:

  • requirements.dev.txt - contains all dependencies that are used during a development process
  • requirements.txt - contains all dependencies that are used at the production

Install all packages that are specified in the requirements.dev.txt file. Run the following command to make it:

$ pip install -r requirements/dev.txt

Production

.env

Before starting the application, you must create .env in the root folder. You already have a .env.prod file, which contains the template of the .env file and some default values.

Start application

You have a docker-compose.yml file in the root directory with all necessarily configuration. If you have created the .env file, you will start the application if you print following command:

$ docker-compose up

The application works on 8888 port at the 127.0.0.1 IP address.

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.