Skip to content
View Darlin7701's full-sized avatar

Block or report Darlin7701

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Darlin7701/README.md

πŸš€ Dream Chaser β€” Company Database System

A complete company database web app built with Flask + SQLite (no external DB server needed).

Features

  • Authentication β€” hashed passwords (PBKDF2-SHA256, 200k iterations), session login, "Remember me" (2 weeks)
  • Role-based access β€” admin vs staff; deletes and user management are admin-only
  • Dashboard β€” headcount, payroll totals, per-department breakdown, recent hires
  • Employees β€” full CRUD, search, sortable columns, department assignment
  • Customers β€” full CRUD, search, notes
  • Departments β€” add / rename / delete (employees unassigned, not lost)
  • SQL Database Tools (admin) β€” phpMyAdmin-style: SQL console (SELECT free, writes need confirm), browse any table with pagination, CSV export per table, CSV bulk import, full .db backup download
  • MySQL ready β€” import schema.mysql.sql and set DATABASE_URL=mysql+pymysql://user:pass@localhost/dream_chaser to run on MySQL instead of SQLite
  • User management (admin) β€” create/edit/delete users, reset passwords, promote to admin; protects against deleting yourself or the last admin
  • Interactive UI β€” live table filtering, click-to-sort tables, auto-dismiss flash messages, double-submit guard, pagination, custom 404/500 error pages

Run it

pip install -r requirements.txt
python app.py

Open http://127.0.0.1:5000 β€” default account: admin / admin123 (change it from the πŸ”‘ button in the top bar).

Project layout

app.py            # Flask app: routes, schema, auth, hashing
company.db        # SQLite database (auto-created on first run)
templates/        # Jinja2 templates (base + per-page)
static/style.css  # site design
static/main.js    # interactivity (sort, filter, toasts)

Security notes

  • Passwords are never stored in plain text
  • All input is parameterized (no SQL injection)
  • Jinja2 auto-escapes output (no XSS)
  • Delete actions are POST-only, with CSRF-style confirm dialogs

Popular repositories Loading

  1. Darlin7701 Darlin7701 Public

    Config files for my GitHub profile.

    Python 2

  2. Documents Documents Public

  3. GoJS GoJS Public

    Forked from NorthwoodsSoftware/GoJS

    JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.

    HTML

  4. Mon-premier-projet Mon-premier-projet Public

    Forked from Bankou224/Mon-premier-projet

    Ce projet est un modèle d'exemple de CV professionnel et premium

    CSS

  5. Nova-admin-board-DARLINGTON Nova-admin-board-DARLINGTON Public

    NOVA-DARLINGTON

  6. Dream-Chaser- Dream-Chaser- Public