This repository has been archived by the owner. It is now read-only.
Tool to help improve articles on French communes on the French Wikipedia and Wikidata
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
conf
macommune
mc_frontend
.gitignore
Dockerfile
LICENSE
README.md
config.ini.sample
docker-compose.yml
docker-entrypoint.sh
manage.py
pywiki_light.py
requirements.txt
upgrade_prod.sh

README.md

Archived project, moved to https://framagit.org/wikimedia-france/macommune

macommune

Logo

Install

Packages

  • apt install libmysqlclient-dev libffi-dev libssl-dev libssl-doc zlib1g-dev python3-dev python3-venv

Prepare database

  • 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 DATABASE macommune CHARACTER SET utf8;

  • FLUSH PRIVILEGES;

Install the project

  • git clone this repository somewhere and cd in.
  • cp config.ini.sample config.ini
  • Fill the config.ini file
  • python3 -m venv venv
  • source venv/bin/activate
  • pip install wheel
  • pip install -r requirements.txt
  • python3 manage.py migrate
  • python3 manage.py collectstatic
  • python3 manage.py nightly_update

Launch it

  • python3 manage.py runserver

Install using docker-compose

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