Synology Package Repository
- Create a virtualenv and install dev-requirements.txt. You may need to install development packages on your distribution.
- Create the tables with
python manage.py db create
- Populate the database with some fake packages with
python manage.py db populate
- Add an user with
python manage.py user create -u Admin -e admin@admin.adm -p adminadmin
- 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
.
- Start the development server with
python manage.py runserver
- Website is available at http://localhost:5000
- Admin interface is available at http://localhost:5000/admin
- NAS interface is available at http://localhost:5000/nas
- API is available at http://localhost:5000/api
- Run the test suite with
python manage.py test
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.