Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/relaxdiego/mobility
Barebones framework for building an MSE application
https://github.com/relaxdiego/mobility
Last synced: 28 days ago
JSON representation
Barebones framework for building an MSE application
- Host: GitHub
- URL: https://github.com/relaxdiego/mobility
- Owner: relaxdiego
- License: mit
- Created: 2014-08-01T08:13:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-04T17:51:16.000Z (over 10 years ago)
- Last Synced: 2024-12-17T19:02:01.618Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 391 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
Mobility App Framework
======================This is a barebones framework that you can use to build your own web
application on top of the Cisco Mobility Services Engine (MSE) platform.Requirements
------------* Python v2.7.8 (https://www.python.org/download/releases/2.7.8)
* Pip (http://pip.readthedocs.org/en/latest/installing.html)
Installation
------------1. Get this project:
* via git: git clone https://github.com/relaxdiego/mobility.git
* via a zip file: https://github.com/relaxdiego/mobility/releases
2. Run the following in your terminal:
cd
sudo pip install -r requirements.txt
3. Copy `config.yml.example` to `config.yml` in the same directory.
4. Edit `config.yml`. Replace placeholder values (i.e. values surrounded
by < and >) with real values. See `config.yml` for instructions.Run the Sample App
------------------1. Run the following in your terminal:
python mobility/app/main.py
NOTE: This runs the web server on the terminal. You will now see
it outputting logs and will continue to do so until you terminate
it. Leave it as is and proceed to the next step.2. Point your browser to http://localhost:5000
Edit the Sample App
-------------------* The main file is in mobility/app/main.py. Start there.
* Each function decorated with @app.route(...) is accessible
via the browser. The value between the parentheses determines
how it is accessed through the browser. For example, if the
decorator is @app.route('/get_maps'), then you can access
that method via http://localhost:5000/get_maps.* Try creating a new route (e.g. /get_clients) and render a
static template to begin with. Get comfortable with that and
then move on to picking an API endpoint, getting data from
that and then displaying it dynamically in your template.
Use get_maps() and maps.html as your references.