neutral-starter-py

Installation Guide

This document explains how to install Neutral TS Starter Py using either the automatic installers or a manual setup.

1. Prerequisites

Automatic installers are provided for:

2.1 What the automatic installer does

Important:

2.2 Linux/macOS

curl -fsSL https://raw.githubusercontent.com/FranBarInstance/neutral-starter-py/main/bin/install.sh | sh

2.3 Windows PowerShell

powershell -ExecutionPolicy Bypass -NoProfile -Command "iwr -useb https://raw.githubusercontent.com/FranBarInstance/neutral-starter-py/main/bin/install.ps1 | iex"

3. Manual Installation

3.1 Clone repository

git clone https://github.com/FranBarInstance/neutral-starter-py.git
cd neutral-starter-py

3.2 Create virtual environment

Linux/macOS:

python3 -m venv .venv
source .venv/bin/activate

Windows PowerShell:

py -3 -m venv .venv
.\.venv\Scripts\Activate.ps1

3.3 Install dependencies

python -m pip install --upgrade pip
python -m pip install -r requirements.txt

3.4 Configure environment file

cp config/.env.example config/.env

Set SECRET_KEY to a strong random value before running in non-local environments.

Create:

Example:

{
  "manifest": {
    "route": "/admin-r4nd0m12ab34"
  }
}

For cmp_8100_localdev use /local-admin-[random].

Note:

3.6 Bootstrap databases

python bin/bootstrap_db.py

3.7 Create initial admin user

python bin/create_user.py "Admin" "admin@example.com" "your-password" "1990-01-01" --locale es --role admin

Then update in config/.env for local-only cmp_8100_localdev access:

Optional hardening:

3.8 Run application

python src/run.py

Default URL: http://localhost:5000

4. config/.env Variables to Configure

This section focuses on the most relevant variables from config/.env.example, plus a few supported advanced variables that may be added manually when needed.

4.1 Minimum required

4.3 Database variables

For each DB group (PWA, SAFE, FILES):

If using SQLite, validate filesystem permissions for DB paths.

4.4 Mail variables (if email flows are used)

4.5 Security and policy variables

Keep unsafe CSP flags disabled unless strictly necessary.

4.6 Debug/development toggles

For production, keep debug-related flags disabled.

5. Post-installation Checklist