Skip to content

xuedong/mangaki

 
 

Repository files navigation

Mangaki

Dependency Status CircleCI Codecov

Welcome to Mangaki!
This README is also available in French.

What to do from here?

AI for Manga & Anime

AI for Manga & Anime

Read about our keynote at Anime Expo, Los Angeles in July 2018.

Mangaki on Earth (MoE): visualizing anime embeddings

Visualize anime embeddings

Install Mangaki

Running the web server

Requires Python 3.4 up to 3.6, PostgreSQL 9.3 up to 10, Redis 4.0, and preferably pwgen.

./config.sh
python3 -m venv venv
. venv/bin/activate
pip install -r requirements/dev.txt
cd mangaki
./manage.py migrate
./manage.py runserver

And voilà! You can access Mangaki at http://localhost:8000.

Running background tasks (Celery)

Background tasks represent:

  • importing anime from another database;
  • looking for duplicates in the database;
  • (in a near future) improve Mangaki models.

These are optional, but if you want to try them:

 # Ensure that your working directory contains manage.py
 celery -B -A mangaki:celery_app worker -l INFO

If you can read something like this:

[2018-08-23 13:37:42,000: INFO/MainProcess] celery@your_hostname ready.

The worker is ready to receive background tasks (e.g. MAL imports).

VM install

You can also install Mangaki in a VM using our amazing Ansible playbooks.

It's simple but takes 2 GB.

Populate the database with a few fixtures

The database starts empty, but you can populate a few works:

./manage.py loaddata ../fixtures/{partners,seed_data}.json
./manage.py ranking    # Compute the anime/manga ranking pages. Should be done regularly.
./manage.py top --all  # Compute the Top 20 directors, etc. Should be done regularly.
./manage.py test       # Run all tests

See also our interesting Jupyter notebooks, in another repository.

Contribute

Contact

About

Site de recommandation de mangas et d'anime

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 60.6%
  • JavaScript 20.0%
  • HTML 16.1%
  • CSS 2.5%
  • Other 0.8%