<commit_before># Init the code

Checkout the submodules:

```bash
git submodule init
git submodule update
```

# Configure the system

Copy `env/example` to `env/dev` and set all the variables.
Set all the variables also in the `conf/supervisord/*` files.


# Install the Vagrant box

See VAGRANT.md.


# Run it

Enter the Vagrant box: `vagrant ssh`.
Init the environment:

```bash
. /var/www/astrobin/env/dev
. /venv/astrobin/dev/bin/activate
```

Create a superuser:

```bash
/var/www/astrobin/manage.py createsuperuser
```

Start AstroBin:

```bash
/var/www/astrobin/manage.py runserver 0.0.0.0:8082
```

Visit http://127.0.0.1:8082/<commit_msg>Add instructions to run a dummy mail server.<commit_after># Init the code

Checkout the submodules:

```bash
git submodule init
git submodule update
```

# Configure the system

Copy `env/example` to `env/dev` and set all the variables.
Set all the variables also in the `conf/supervisord/*` files.


# Install the Vagrant box

See VAGRANT.md.


# Run it

Enter the Vagrant box: `vagrant ssh`.
Init the environment:

```bash
. /var/www/astrobin/env/dev
. /venv/astrobin/dev/bin/activate
```

Create a superuser:

```bash
/var/www/astrobin/manage.py createsuperuser
```

Run a dummy mail server:

```bash
sudo python -m smtpd -n -c DebuggingServer localhost:25 &
```

Start AstroBin:

```bash
/var/www/astrobin/manage.py runserver 0.0.0.0:8082
```

Visit http://127.0.0.1:8082/
{'fraction_non_alphanumeric': 0.1327247191011236, 'fraction_numerical': 0.026685393258426966, 'mean_word_length': 3.814189189189189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3451654', 'n_tokens_mistral': 575, 'n_tokens_neox': 518, 'n_words': 158}