Giter Site home page Giter Site logo

order_flask's Introduction

Catalog

API for Catalog service.

Features

  • Users can register, login in the Catalog service using username and password.
  • The API allows for manage the inventory of products.
  • The API allows for manage addresses, products and orders.
  • The API allows to save information in a order_events.txt about changed statuses of orders.

Installation

Python3 must be already installed.
git clone https://github.com/InnaKushnir/order_flask
cd order_flask
python -m venv venv
venv/Scripts/activate
pip install -r requirements.txt
  • Copy .env.sample -> .env and populate with all required data.

Run the following necessary commands

  • Docker is used to run a Redis container that is used as a broker for Celery.
docker run -d -p 6379:6379 redis

The Celery library is used to schedule tasks and launch workers.

  • Starting the Celery worker is done with the command.
celery -A celery_ worker -l INFO -P solo
flask run

Test user

  • Username: admin1

  • Password: 12345admin1

  • Register on the website using the link.

http://127.0.0.1:5000/register/

  • Login on the website using the link.

http://127.0.0.1:5000/login/

How to run with Docker:

  • Copy .env.sample -> .env and populate with all required data
  • docker-compose up --build

order_flask's People

Contributors

innakushnir avatar

Watchers

 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.