Giter Site home page Giter Site logo

bigstone's Introduction

BIG STONE PROJECT

flow

1. Introduction

2. Installation

  1. Clone the repository.
  2. Run docker-compose up -d --build to build the containers.
  3. Go to localhost:8003/docs for API documentation

3. Data

Go to Server folder and open the models.py file to see the models and their attributes.

The main.py file contains the API endpoints.

Clients Model:

The Clients Model represents client information for a business or service. It includes attributes such as _id, name, email, cpf (Cadastro de Pessoas Físicas), rfid (Radio Frequency Identification), qrcode, phone, address, cep (Código de Endereçamento Postal), and balance. The model is designed to manage and track client details, generate unique RFIDs and QR codes, and ensure valid email and CPF formats. The provided validators ensure data integrity and facilitate automatic generation of unique identifiers. The model is intended for use cases where client information and balances need to be managed seamlessly.

Items Model:

The Items Model represents information about items available in a store or inventory. It includes attributes such as _id, name, description, price, quantity, image, category, tags, and barcode. The validators ensure that the price is valid and provide automatic barcode generation if not provided. This model is suitable for managing and organizing inventory items, enabling efficient tracking and retrieval.

Transaction Model:

The Transaction Model captures information about transactions involving clients and items. It includes attributes such as _id, client_id, rfid, items, total, timestamp, kg_price, and meal_price. This model is tailored for tracking purchases, particularly in contexts where items can be weighed and priced by kilogram. The model's items field allows for listing multiple items in a transaction, and the total field calculates the overall transaction price. This model is well-suited for scenarios where clients make purchases, and the transaction involves both individual items and weighted products, providing a comprehensive overview of the transaction details.

logo

4. Folder structure

Folder structure for the project:

resources
    ├── flow_bg_white.svg # Flow diagram
    ├── flow_bg.svg # Flow diagram
    ├── flow.svg # Flow diagram
    ├── logo.svg # Logo
server
    ├── Dockerfile # Dockerfile for the FastAPI server
    ├── README.md
    ├── main.py # Main file for the FastAPI server
    ├── models.py # Contains the models for the database
    ├── requirements.txt # Requirements for the FastAPI server
    ├── utils.py # Contains the functions for the FastAPI server
    └── database # connection to the database
data # Contains the data for the database (ensures persistence)
    ├── main_db
        ├── journal
        ...
.env # Environment variables
.dockerignore # Dockerignore file
.gitignore # Gitignore file
docker-compose.yml # Docker compose file
README.md # Readme file

5. Technologies

  • Python 3.12

  • Docker

  • MongoDB

  • FastAPI

  • NextJS

  • TailwindCSS

Notas

Desconto professores - -10% desconto Remover compra Selecionar periodo para exportar para clientes mandar por email

python send_plus_sense.py --host Dell-Carlos --port 8003 --api /api/current_dish_weight/add --interval 1

bigstone's People

Contributors

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