xbl3 / spkrepo

Synology Package Repository

Home Page:http://spkrepo.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spkrepo

Synology Package Repository

Travis CI build status Documentation Status Requirements Status Code coverage

Development

Installation

  1. Create a virtualenv and install dev-requirements.txt. You may need to install development packages on your distribution.
  2. Create the tables with python manage.py db create
  3. Populate the database with some fake packages with python manage.py db populate
  4. Add an user with python manage.py user create -u Admin -e admin@admin.adm -p adminadmin
  5. Grant the created user with admin permissions python manage.py user add_role -u admin@admin.adm -r admin

To reset the environment, clean up with python manage.py clean.

Run

  1. Start the development server with python manage.py runserver
  2. Website is available at http://localhost:5000
  3. Admin interface is available at http://localhost:5000/admin
  4. NAS interface is available at http://localhost:5000/nas
  5. API is available at http://localhost:5000/api
  6. Run the test suite with python manage.py test

Deployment

As an example of deployment, spkrepo provides SaltStack files in the salt directory. You can test this with Vagrant by running vagrant up. This makes easy to reproduce production-like environments.

About

Synology Package Repository

http://spkrepo.readthedocs.org

License:MIT License


Languages

Language:Python 90.5%Language:HTML 6.8%Language:SaltStack 2.1%Language:CSS 0.3%Language:Mako 0.2%Language:JavaScript 0.0%