The goal of this service is to integrate closely with the addons.mozilla.org website (a.k.a AMO) to provide a way to register non AMO-listed addons as a really simple process.
Behind the scene, we are using Celery to distribute our jobs in a queue. We use Redis as a backend so you would need to get it installed on your machine.
Once you have the redis dependency in place, you would just need to run the makefile:
$ make build
Then there are two parts. The fist one runs the web service, and the other one the celery workers.
To start the service:
$ make serve
To start the celery workers:
$ make workers
And you should have the server up & running!
All the python dependencies are listed in the requirements folder. If you want to install a production server, then you would need to rely on the requirements/prod.txt
file.
You just need to type make test to run the tests. The default behaviour is to run the tests against a temporary database, but you can change that by explicitely setting up the SQL_URI environment variable to the backend you want, e.g. SQLURI=mysql://addonreg:addonreg@localhost/addonreg make test