25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

README.rst 3.7 KiB

5 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. |Pinry|
  2. =======
  3. The open-source core of Pinry, a tiling image board system for people
  4. who want to save, tag, and share images, videos and webpages in an easy
  5. to skim through format.
  6. For more information visit `getpinry.com`_.
  7. Feature
  8. -----------------
  9. - Image fetch and online preview
  10. - Tagging system for Pin
  11. - `Chrome/Firefox plugin support <https://github.com/winkidney/browser-pinry>`_
  12. - multi-user support
  13. - Both public and private is supported
  14. Setup Guide for users
  15. --------------------------
  16. Please use docker to install `docker-pinry <https://github.com/pinry/docker-pinry>`_
  17. Developers or users who are familiar with python/nginx could setup Pinry with following guide : )
  18. Quick Start for Developers
  19. ----------------------------
  20. You need only three following lines to initialize your pinry::
  21. make bootstrap
  22. make serve
  23. Now the development server has been running, enjoy : )
  24. Upgrade from old version
  25. --------------------------
  26. Our currently version is 2.x, If you are old user of Pinry,
  27. please follow document below to upgrade to 2.x.
  28. For source code users:
  29. Read our `online doc <doc/upgrade_from_1.x.md>`_ about how to upgrade to 2.x
  30. For docker users, please contact us for help: )
  31. Requirements
  32. ------------
  33. Pinry is built on top of Django and optimized to run on a Linux
  34. environment. However we have gotten Pinry to work on Windows and Mac as
  35. well but it may require some extra digging around configuration. Pinry's
  36. Python requirements are all in the ``Pipfile`` file. You can easily install
  37. these using pipenv, to get pipenv, if you already have Python and pip, run
  38. python ``pip install pipenv``.
  39. Testing
  40. -------
  41. We have many tests built into Pinry to ensure that changes don't break
  42. anything. If you are live dangerously and have cutting edge new Pinry
  43. features first you can use our master branch for your own instance. We
  44. recommend using our tags/versions though.
  45. To run Pinry's tests inside the Pinry repo run::
  46. pipenv install --dev --three
  47. pipenv run python manage.py test
  48. Docker
  49. ------
  50. Follow the steps below to install Pinry locally or on any server. This
  51. process installs the minimal requirements to run Pinry. For development
  52. requirements and procedures, see testing above.
  53. Current docker configuration will just mount source code directory to
  54. docker app directory and run any codes existed in current git branch,
  55. you may also add "local_settings.py" to customize settings without
  56. changing settings file in `pinry/settings`.
  57. - Install the requirements:
  58. - Docker
  59. - Docker Compose
  60. - Set any custom configuration options you need and run::
  61. cp docker-compose.example.yml docker-compose.yml
  62. # edit docker-compose.yml and change the secret-key,
  63. # don't forget to backup this config file.
  64. docker-compose up -d
  65. - If you want to run Pinry with current user in docker::
  66. ./start_docker_with_current_user.sh [-d]
  67. - Bootstrap the database(optional)::
  68. docker-compose exec web python3 manage.py migrate --settings=pinry.settings.docker
  69. **Note** : No static file server configured, your should configure nginx or other server to serve
  70. static files from ./static
  71. Linting
  72. -------
  73. So everything isn't a mess::
  74. pipenv run flake8 --exclude=migrations
  75. Contributors
  76. ------------
  77. The core contributors for Pinry have been/currently are:
  78. * Isaac Bythewood <http://isaacbythewood.com/>
  79. * Krzysztof Klimonda
  80. * Lapo Luchini <https://github.com/lapo-luchini>
  81. For a full list of contributors check out the `GitHub Contributors Graph`_.
  82. .. Links
  83. .. |Pinry| image:: https://raw.github.com/pinry/pinry/master/logo.png
  84. .. _getpinry.com: http://getpinry.com/
  85. .. _docker-pinry GitHub repository: https://github.com/pinry/docker-pinry
  86. .. _GitHub Contributors Graph: https://github.com/pinry/pinry/graphs/contributors