Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openedx/license-manager
Django backend for managing licenses and subscriptions
https://github.com/openedx/license-manager
backend-service
Last synced: 7 days ago
JSON representation
Django backend for managing licenses and subscriptions
- Host: GitHub
- URL: https://github.com/openedx/license-manager
- Owner: openedx
- License: agpl-3.0
- Created: 2020-04-07T15:41:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-17T13:24:05.000Z (9 days ago)
- Last Synced: 2024-12-17T14:27:19.820Z (9 days ago)
- Topics: backend-service
- Language: Python
- Homepage:
- Size: 2.42 MB
- Stars: 31
- Watchers: 56
- Forks: 30
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
License Manager |Codecov|_
===================================================
.. |Codecov| image:: http://codecov.io/github/edx/license-manager/coverage.svg?branch=master
.. _Codecov: http://codecov.io/github/edx/license-manager?branch=masterDjango backend for managing licenses and subscriptions.
Setting up license-manager
--------------------------Prerequisites
^^^^^^^^^^^^^
- Set the ``DEVSTACK_WORKSPACE`` env variable (either locally or in your shell config file: ``.bash_rc``, ``.zshrc``, or equivalent) to the folder which contains this repo and the `devstack` repo.
e.g ``export DEVSTACK_WORKSPACE=/home//edx``
- Set up `devstack `_Quick Setup
^^^^^^^^^^^
`More detailed setup instructions `_::
$ make docker_build
$ make dev.provision
$ make dev.up
$ make app-shell
# make requirements
# make validate # to run full test suiteThe server will run on ``localhost:18170``
Running migrations
------------------::
$ make app-shell
# ./manage.py migrateRunning backup/restore to switch mysql volumes
----------------------------------------------
Sometimes the names of volumes must change due to upgrades, etc.
To dump data from an old mysql volume to the new mysql8 volume:- Temporarily modify docker-compose.yml to switch the mysql volume name from mysql8 to just mysql
- Create a backup directory in your license-manager repo: ``mkdir -p .dev/backups``
(although the next steps might actually do this for you)Then::
make dev.down
make dev.backup
make dev.downNext:
- Remove your temp changes from above in docker-compose.yml
- ``make dev.restore``
- ``make dev.down dev.up`` - might be necessary if you lost connection between the app container and the mysql container.Documentation
-------------
.. |ReadtheDocs| image:: https://readthedocs.org/projects/license-manager/badge/?version=latest
.. _ReadtheDocs: http://license-manager.readthedocs.io/en/latest/`Documentation `_ is hosted on Read the Docs. The source is hosted in this repo's `docs `_ directory. To contribute, please open a PR against this repo.
For instructions on starting local development, see `Getting Started `_.
License
-------The code in this repository is licensed under version 3 of the AGPL unless otherwise noted. Please see the LICENSE_ file for details.
.. _LICENSE: https://github.com/openedx/license-manager/blob/master/LICENSE
How To Contribute
-----------------Contributions are welcome. Please read `How To Contribute `_ for details.
Reporting Security Issues
-------------------------Please do not report security issues in public. Please email [email protected].
Get Help
--------Ask questions and discuss this project on `Slack `_ or in the `edx-code Google Group `_.