Inside The Drakkar
-
Upload
gert-van-gool -
Category
Technology
-
view
1.379 -
download
0
description
Transcript of Inside The Drakkar
![Page 1: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/1.jpg)
www.mobilevikings.com
Inside the Drakkarthe making of Mobile Vikings
by Gert, Ingo & Jef
![Page 2: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/2.jpg)
www.mobilevikings.com
Mobile Vikings facts• Mobile operator since Feb 1, 2009
• Started with 1000 users and has grown since
• 2500 invitation requests
• 6350 total lines of Python code
• Total usage of 27,05 GiB used last month
![Page 3: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/3.jpg)
www.mobilevikings.com
Overview
•Technology•Website•Backend
![Page 4: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/4.jpg)
www.mobilevikings.com
Technology stack•Django 1.0
• Apache 2
•MySQL 5
• Server
![Page 5: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/5.jpg)
www.mobilevikings.com
Django•What?
•Web framework encouraging DRY-principle
• Python
•Model-Template-View (MVC-like)
• Focus on reusability
•More info: djangoproject.com
![Page 6: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/6.jpg)
www.mobilevikings.com
Server•One virtualized machine
• Plenty of room for scaling
•Debian
![Page 7: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/7.jpg)
www.mobilevikings.com
Website philosophyEverything via the web
•Become a customer
•Get your SIM card
• Top-ups (PayPal, …)
•Realtime call history
• Important information (SIM number, PUK, credit balance, SMS alerts)
![Page 8: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/8.jpg)
www.mobilevikings.com
Website philosophy (2)Feedback == important!
•We strive to create a better user experience…
•… so give us your feedback!
![Page 9: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/9.jpg)
www.mobilevikings.com
Backend•Connection to BASE
• SIM management
•Bundles
• Top-ups
•Helpdesk
• SMS alerts (upcoming feature)
![Page 10: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/10.jpg)
www.mobilevikings.com
Django and Mobile Vikings• Allows us to create reliable, complex yet
maintainable web applications and sites in no time
• Pretty URL’s (E.g. /myviking/credit/)
• Makes use of Python, which is more explicit; this gives clarity. Existing code has an easy learning curve.
• Powerful templating system with inheritance
• Built-in support for internationalization
![Page 11: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/11.jpg)
www.mobilevikings.com
Django and Mobile Vikings (2)• Django helped us to cope with constantly changing
situations (many new features, data model changes, complete rewrites of parts)
• Abstraction to external API’s
• E.g. support for multiple SMS gateways
• Easy and fast deployment
• Supports iterative development
• Clean, but readable code
![Page 12: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/12.jpg)
www.mobilevikings.com
Clean code
Models define:• Database tables• Object-Relational Mapper• HTML forms (including basic validation)• a part of the REST API
Our SIM model:
![Page 13: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/13.jpg)
www.mobilevikings.com
Made with Django• mobilevikings.com
• glowe.org
• gloweme.com
• …
![Page 14: Inside The Drakkar](https://reader033.fdocuments.us/reader033/viewer/2022061103/54058f258d7f729b768b4db1/html5/thumbnails/14.jpg)
www.mobilevikings.com
Questions?