Archived project, moved to https://framagit.org/wikimedia-france/macommune
- Source code of https://macommune.wikipedia.fr/
- See https://fr.wikipedia.org/wiki/Projet:Ma_Commune_Wikip%C3%A9dia
apt install libmysqlclient-dev libffi-dev libssl-dev libssl-doc zlib1g-dev python3-dev python3-venv
-
Connect to MySQL and create a database for the tool:
-
CREATE DATABASE macommune; -
CREATE USER 'macommune'@'localhost' IDENTIFIED BY 'password'; -
GRANT ALL PRIVILEGES ON macommune.* TO 'macommune'@'localhost'; -
ALTER DATABASEmacommuneCHARACTER SET utf8; -
FLUSH PRIVILEGES;
git clonethis repository somewhere andcdin.cp config.ini.sample config.ini- Fill the config.ini file
python3 -m venv venvsource venv/bin/activatepip install wheelpip install -r requirements.txtpython3 manage.py migratepython3 manage.py collectstaticpython3 manage.py nightly_update
python3 manage.py runserver
cp conf/config.dev.ini config.ini docker-compose up -d docker-compose run --rm web bin/update
This starts a development server on localhost:5001
