https://github.com/megave/nlw-expert-python
Projeto Backend da NLW Expert, da Trilha "Python (Intermediário)" | Backend Project from NLW Expert, from the Trail "Python (Intermediate)"
https://github.com/megave/nlw-expert-python
flask pylint pytest python python-barcode react virtualenv
Last synced: 5 months ago
JSON representation
Projeto Backend da NLW Expert, da Trilha "Python (Intermediário)" | Backend Project from NLW Expert, from the Trail "Python (Intermediate)"
- Host: GitHub
- URL: https://github.com/megave/nlw-expert-python
- Owner: megaVE
- License: mit
- Created: 2024-02-06T01:05:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-17T19:38:07.000Z (7 months ago)
- Last Synced: 2025-08-02T18:46:18.538Z (6 months ago)
- Topics: flask, pylint, pytest, python, python-barcode, react, virtualenv
- Language: Python
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NLW Expert Python
EN: Development of a back-end application in Python, using Flask as the framework, environment setup and project best practices with Virtualenv, Pylint, and code versioning using pre-commit, barcode generation with python-barcode, and testing with Pytest.
PT: Desenvolvimento de uma aplicação back-end em Python, utilizando Flask como framework, preparação de ambiente e boas práticas de projeto com Virtualenv, Pylint e versionamento de código usando pre-commit, criação de código de barras com python-barcode e testes com Pytest.
## Description (Descrição)
The project consists in a Flask server capable of generating barcodes through a string input using the following JSON request in a POST request:
(O projeto consiste em um servidor Flask capaz de gerar códigos de barra por meio de uma entrada de texto usando a seguinte requisição JSON com uma requisição POST:)
{
"product_code": [code]
}
There is also a Frontend page availabe made with React, which can be executed to make the experience better.
(Também possui uma página Frontend feita em React, que pode ser executada para deixar a experiência melhor.)
## Installing (Instalação)
### Python (Flask Backend)
Requirements:
(Requisitos:)
- Python3
- PIP3
- Virtualenv
Enter the command:
(Digite o comando:)
### py -m venv .venv (Windows)
### python3 -m venv .venv (Linux)
to configure the virtual environment and then
(para configurar o ambiente virtual e então)
### .venv/Scripts/activate (Windows)
### . .venv/bin/activate (Linux)
to initialize it. Afterwards, use
(para inicializá-lo. Depois utilize)
### pip install -r requirements.txt
to install the Backend dependencies, and then
(para instalar as dependências do Backend, e então)
## python run.py
to run the Backend server on the port 3000.
(para rodar o servidor Backend, na porta 3000.)
### React (Frontend)
Requirements:
(Requisitos:)
- Node JS
- NPM
Inside the folder "/frontend", enter the command:
(Dentro da pasta "/frontend", digite o comando:)
#### npm install
to install the required dependencies via NPM. Then enter
(para instalar as dependências necessárias pelo NPM. Então digite)
### npm run dev
to run the Frontend interface.
(para rodar a interface Frontend.)


