Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • dev
  • dev2
  • minh
4 results

systemdev_hrproject

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Nguyễn Minh authored
    1a63ee6b
    History

    HR Management System

    Running with Docker

    Prerequisites

    • Docker
    • Docker Compose

    Steps to Run with Docker

    1. Clone the repository

      git clone <repository-url>
      cd <repository-directory>
    2. Start the application with Docker Compose

      docker-compose up -d
    3. Access the application

      • The web application will be available at 127.0.0.1:5000
      • MySQL database will be available at 127.0.0.1:3306

    Docker Environment Variables

    The following environment variables can be modified in the docker-compose.yml file:

    • DB_HOST: Database hostname (default: db)
    • DB_USER: Database username (default: hrapp)
    • DB_PASSWORD: Database password (default: changeme_in_production)
    • DB_NAME: Database name (default: hrms)
    • DB_PORT: Database port (default: 3306)

    Running Locally (without Docker)

    STEP 1

    pip install -r requirements.txt

    STEP 2

    create your own config.py file in instance directory based on config_example.py