Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Minor modification to README.md #32

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,28 @@ Metrics are focused on **availability**, with future integration for **performan
```bash
python3 -m venv apps
source apps/bin/activate

# psycopg2 lib Apple silicon specific
# brew install openssl
# export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/openssl/lib

pip install -r django/requirements.txt

# Generate random SECRET_KEY and inject in .env file
SECRET_KEY=$(LC_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 32)
# Or
# SECRET_KEY=$(openssl rand -base64 64)

echo "SECRET_KEY=$SECRET_KEY" >> .env

# Create superuser to access django admin panel
python django/manage.py createsuperuser
# For development, add DEBUG=1 in .env file
# echo "DEBUG=1" >> .env

# For a first setup, run migrate and createsuperuser
python django/manage.py migrate
# Create superuser to access django admin panel (migrate first for the first setup)
python django/manage.py createsuperuser

python django/manage.py tailwind install
```

Expand Down