Wiki Infographics is a platform to leverage structured information within Wikimedia projects to create informative and visually engaging infographics in both fixed and dynamic formats, under an open license. It is available at https://infographics.toolforge.org.
The frontend codebase is available in this repository wiki_infographics
Before you begin, ensure you have met the following requirements:
- Python 3
- Flask 3.0.3
-
Clone the repository
git clone https://github.com/WikiMovimentoBrasil/wiki_infographics-backend.git
-
Navigate to the project directory:
cd wiki_infographics-backend
-
Create virtual environment
python -m venv venv
-
Activate the virtual environment
.\venv\Scripts\activate
-
Install project dependencies:
pip install -r requirements.txt
-
create a
config.yaml
file in your directory by copyingconfig-example.yaml
and filling the fields with the proper values. -
Start the development server:
python app.py
You should now be able to access the project at http://localhost:8000 in your web browser
To connect frontend with this backend go to this repository wiki_infographics
> ssh login.toolforge.org
> toolforge~# become <yourtool>
> yourtool@toolforge~# toolforge build start --image-name backend <url_for_this_repo>
## If already exists, restart it
> yourtool@toolforge~# toolforge job restart backend
## If starting up for the first time
> yourtool@toolforge~# toolforge jobs run \
--command "backend" \
--image tool-infographics/backend:latest \
--port 8000 \
--continuous \
--mount=all \
backend
More info on buildservice (debugging, etc.) here
Contributions are welcome! To contribute to Wiki Infographics, follow these steps:
- Fork the repository
- Create a new branch: git checkout -b feature/your-feature
- Make your changes and commit them: git commit -m 'Add some feature'
- Push to the branch: git push origin feature/your-feature
- Create a pull request on GitHub
- Save users successful SPARQL queries
This project is licensed under the MIT License - see the LICENSE file for details.