Provides a skeleton RapidSMS project using Nyaruka's best practices.
NyarumaSMS aims to provide a quick start for a basic python based SMS app using the tools Nyaruka uses to build its systems. This includes setting up rapidsms, rapidsms-httprouter, smartmin and our parsing and localization libraries.
To get started, follow these steps:
% virtualenv env % source env/bin/activate % pip install nsms % start-nsms [project-name] % pip install -r pip-requires.txt % cd [project-name] % python manage.py syncdb % python manage.py migrate % python manage.py runserver
NSMS comes with a simple SMS application to track the mileage on vehicles. The SMS format for the application is as follows.
Each user of the system much register the car they are using, they do so by sending:
car [license plate]
This register a car to the phone. From now on all mileage reports will be associated with the car with the passed in license plate. The license plate must be 8 characters.
Once a user has registered their car, they can report mileage by sending the message:
miles [mileage (integer)]
This records a new mileage report for the car associated with this connection. If the connetion has not registered a car then this will be an error.
This application aims to demonstrate the following best practices: