This quickstart walks you through cloning the repository, installing dependencies, configuring your database connection, and running Sistema MRP for the first time. By the end you will have the application running atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ElthonJohan/Sistema-MRP/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:8501 and be ready to log in.
Clone the repository and create a virtual environment
Clone the repository and set up an isolated Python environment:Then activate the virtual environment:
Install dependencies
Install all required packages from Key packages installed include
requirements.txt:streamlit, sqlalchemy, psycopg2-binary, bcrypt, fpdf2, plotly, and python-dotenv.Configure the database URL
Create a SQLite requires no additional setup — the database file is created automatically when you run
.env file in the project root and set the DATABASE_URL variable. Choose the variant that matches your environment:- SQLite (local development)
- PostgreSQL (production)
.env
init_db.py.Initialize the database
Run the initialization script once before starting the app:This script does three things in order:
- Creates all tables — calls
Base.metadata.create_all, creating any tables that do not yet exist. - Runs migrations — executes
run_migrations(), which applies additiveALTER TABLEstatements (safe to re-run on existing databases). - Seeds the superadmin account — creates the
superadminuser with the default password if it does not already exist.
Run the application
Start the Streamlit development server:The app opens at
http://localhost:8501.app.py is a legacy shell — it renders a brief hero page and immediately redirects users to pages/login.py, which is the real entry point. You will land on the login screen automatically.Log in
On the login screen you have two options:
- Superadmin access — log in with username
superadminand passwordAdmin123!to reach the admin panel (pages/admin.py), where you can manage client accounts and view access logs. - Client access — register a new client account from the login page to access the operational dashboard (
pages/dashboard.py).