NOTE: This app runs on SSL, so the default commands (e.g. pnpm start
) will serve via HTTPS on localhost.
Before running this application, ensure that you have the following installed:
-
Clone the repository or download the source code.
-
Open a terminal or command prompt and navigate to the project directory.
-
Run
pnpm install
to install the project dependencies. -
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
On macOS and Linux:
source .venv/bin/activate
On Windows:
.venv\Scripts\activate
Include .env
file to set environment variables. .env.example
is included as an example.
Find and replace any instances of FIXME
.
sh scripts/ssl-script.sh && \ # Only on initial setup
sh scripts/startup-script.sh
- Generate SSL scripts
- Install Python packages
- Migrate databases
- Collect static files
- Load fixtures
- Run the server
Verify project is serving on localhost.
- Visit your API at https://localhost:8000/api
- Visit the Django admin at https://localhost:8000/admin
Generate a SQLite database (django_base_template/django_base_template/db.sqlite3
) and load initial fixture data.
pnpm migrate:run-syncdb
pnpm load-fixtures
Run the collectstatic
management command.
pnpm collectstatic
Visit your API at https://localhost:8000/api
Run some tests.
pnpm test
pnpm coverage:html
Open
htmlcov/index.html
in the web browser.
Perform linting.
pnpm lint
git config commit.template .gitmessage