A simple Flask-based web application for managing employee records. This project allows you to perform basic CRUD (Create, Read, Update, Delete) operations on employee data.
1. View Employees: Display a list of all employees with their details (name, position, salary).
2. Add Employees: Add new employees to the database.
3. Edit Employees: Update existing employee details.
4. Delete Employees: Remove employees from the database.
5. Simple UI: Clean and user-friendly interface styled with CSS.
- Backend: Flask, SQLAlchemy
- Frontend: HTML, CSS
- Database: SQLite
- Python 3.x
- pip (Python package installer)
- Install Python on Windows
Follow these steps to install Python on Windows:
- Go to the official Python website: python.org.
- Navigate to the Downloads section and download the latest version of Python for Windows.
- Open the downloaded installer.
- Check the box that says "Add Python to PATH" at the bottom of the installer window.
- Click "Install Now" to proceed with the installation.
- Open Command Prompt (Win + R, type cmd, and press Enter).
- Run the following command to check if Python is installed:
python --version
You should see the installed Python version (e.g., Python 3.11.5).
Pip is usually installed automatically with Python. Verify it by running:
pip --version
- Open Folder
- Navigate to the Employee Management folder
- Install Requirements
You can install all the required dependencies using the requirements.txt file. Run the following command:
pip install -r requirements.txt
- Run the Application
Run the command
python app.py
- Access the Application
Open your browser and navigate to:
Homepage:
View the list of employees.
Add a new employee using the form at the bottom of the page.
Edit Employee:
Click the "Edit" button next to an employee to update their details.
Delete Employee:
Click the "Delete" button next to an employee to remove them from the database (with a confirmation prompt).