eduardolirainfo / nlw_expert_python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask Tag ProductCode ( NLW )

License

Description

This project is a Flask application that allows users to tag product codes with a description. The application is designed to be used in a warehouse or inventory management setting, where users can quickly look up product codes and their descriptions.

Installation

  1. Clone the repository: git clone [repository URL]
  2. Navigate to the project directory: cd [project directory]
  3. Create a virtual environment: python -m venv .venv
  4. Activate the virtual environment:
    • For Windows: .venv\Scripts\activate
    • For macOS/Linux: source .venv/bin/activate
  5. Install the project dependencies: pip install -r requirements.txt

Usage

  1. Set up the necessary environment variables:
   export FLASK_APP=run.py
   export FLASK_ENV=development
   export FLASK_DEBUG=1
In windows, run the following command to set the environment variables:
    set FLASK_APP=run.py
    set FLASK_ENV=development
    set FLASK_DEBUG=1
  1. Start the Flask development server: flask run --host=0.0.0.0 --port=3000 --debugger or python run.py
  2. Access the application in your web browser at http://localhost:3000

Contributing

If you would like to contribute to this project, follow these steps:

  1. Fork the repository
  2. Create a new branch: git checkout -b [branch name]
  3. Make your changes and commit them: git commit -m "[commit message]"
  4. Push to the branch: git push origin [branch name]
  5. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details

Contact

If you have any questions, contact the author directly at GitHub


About


Languages

Language:Python 100.0%