# Getting Back Here

This page documents how to get the project running and how to return to this local development environment.

Repository location (on this machine):

- d:\WebDev\DigitalAssetMgrPro\stitch_digital_asset_manager_pro

Key files to know:

- `server.py` — Flask app that serves the static UI and provides `/api/login`.
- `init_db.py` — Create the `users.db` SQLite database and a test user.
- `add_user.py` — Create or update a user's password (securely hashes the password).
- `sign_in.html` — Login page that posts to `/api/login`.
- `docs/` — MkDocs documentation pages (this wiki).

Starting the app locally (PowerShell):

    cd "d:\WebDev\DigitalAssetMgrPro\stitch_digital_asset_manager_pro"
    # (if needed) install dependencies:
    python -m pip install -r requirements.txt
    # initialize DB (one-time):
    python init_db.py
    # start Flask server on http://127.0.0.1:8000/
    python server.py

Open the login page:

- http://127.0.0.1:8000/sign_in.html
- Root welcome: http://127.0.0.1:8000/ (serves `welcome_screen_1/code.html`)

Wiki access (protected):

- After signing in via `/sign_in.html`, visit the protected documentation at: http://127.0.0.1:8000/wiki/
- If you access `/wiki/` without an authenticated session you'll be redirected to `/sign_in.html`.

Starting the local wiki (documentation):

    cd "d:\WebDev\DigitalAssetMgrPro\stitch_digital_asset_manager_pro"
    python -m mkdocs serve -a 127.0.0.1:8001
    # then open http://127.0.0.1:8001/

Notes:

- Don't commit secrets into the repo. Use `add_user.py` to change passwords locally.
- See the "Rotate Credentials" page for a step-by-step guide to change passwords.

« Previous Next »