ietf-tools / mailarchive

IETF Mail List Archives
https://mailarchive.ietf.org
BSD 3-Clause "New" or "Revised" License
38 stars 24 forks source link
archive mail mailing-list
IETF Mail Archive [![Release](https://img.shields.io/github/release/ietf-tools/mailarch.svg?style=flat&maxAge=300)](https://github.com/ietf-tools/mailarch/releases) [![License](https://img.shields.io/github/license/ietf-tools/mailarch?maxAge=3600)](https://github.com/ietf-tools/mailarch/blob/main/LICENSE) [![Python Version](https://img.shields.io/badge/python-3.9-blue?logo=python&logoColor=white)](#prerequisites) [![Django Version](https://img.shields.io/badge/django-4.2-blue?logo=django&logoColor=white)](#prerequisites) [![Node Version](https://img.shields.io/badge/node.js-16.x-green?logo=node.js&logoColor=white)](#prerequisites) [![MySQL Version](https://img.shields.io/badge/postgres-14.6-blue?logo=postgresql&logoColor=white)](#prerequisites) ##### IETF Mail List Archives

Development

VSCode

This project supports VSCode Dev Containers. Open the project in VSCode and choose restart in container. To run tests: Terminal -> Run Task -> Run All Tests

Others

Run (cd docker && ./run-dev) from the command line. You will be prompted with the following message.

You can execute arbitrary commands now, e.g.,

    backend/manage.py check && backend/manage.py runserver 0.0.0.0:8000

to start a development instance of the Mail Archive.

    cd backend/mlarchive && pytest tests

to run all the tests.

Run cd backend/mlarchive && pytest tests to run all tests.

Sandbox Server

Follow these instructions to deploy a containerized version of the system on a staging server.

Load sample data

To load some sample data (messages for a few small lists), from within the app container:

cd backend/mlarchive/bin
./load_sample_data.sh