Giter Site home page Giter Site logo

fmgarciaa / fyra-api Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 58 KB

Fyra is API-REST of Point of Sale (POS) project built using the Django Rest Framework (DRF) in conjunction with Docker, Redis, and Celery that allows users to manage sales transactions in a retail setting while providing a fast, scalable, and reliable solution.

License: MIT License

Dockerfile 7.34% Shell 8.53% Python 83.56% HTML 0.57%
asw celery-task celerybeat django django-rest-framework docker docker-compose python-3 redis

fyra-api's Introduction

MIT License

FYRA-API

Point of sale (POS) for any type of business

About The Project

Fyra is API-REST of Point of Sale (POS) project built using the Django Rest Framework (DRF) in conjunction with Docker, Redis, and Celery that allows users to manage sales transactions in a retail setting while providing a fast, scalable, and reliable solution.

The project is based cookiecutter-django and was built using the latest version of Django, DRF, Redis, and Celery, was tested using unit tests. Docker containers were used for easy scaling and deployment, and for easy integration with other microservices.

(back to top)

Features

  • Product Management: Users would be able to create, read, update, and delete products, including managing product details such as name and price.
  • Customer Management: Users would be able to create, read, update, and delete customer information, including contact details and purchase history.
  • Sales Transactions: Users would be able to process sales transactions, including adding items to a order and calculating totals.
  • Reporting: Users would be able to generate various reports, such as sales by product, sales by customer, and inventory levels.
  • Authentication and Authorization: The system were include built-in support for authentication and authorization, allowing different users to have different levels of access to the system based on their roles.
  • API: The system was built using the Django Rest Framework, which provides a RESTful API that can be easily consumed by other systems or applications.
  • Redis: Redis was used to manage sessions and caching, providing increased performance and scalability.
  • Celery: Celery was used to handle background tasks such as sending emails and generating reports, allowing for asynchronous processing and improved performance.

(back to top)

Prerequisites

All you need to run this project is to install docker.

Installation

The instructions here are only for a local environment, if you want to deploy please read the documentation for cookiecutter-django.

  1. Set the environment variable COMPOSE_FILE pointing to local.yml, in the terminal, like this::
    $ export COMPOSE_FILE=local.yml
  2. On a terminal at the project root and run the following for local development:
    $ docker-compose build
  3. For run the stack
    $ docker-compose up

(back to top)

Environment Variables

You only have to change the values inside the .env folder as you wish.

.env

(back to top)

Running Tests

To run tests, run the following command

$ docker-compose run --rm django pytest

(back to top)

fyra-api's People

Contributors

fmgarciaa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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