WebDev:FrontendCodeStandards: Difference between revisions

→‎Web App Code: Adding notes around vendor
(→‎Web App Code: Adding notes around vendor)
Line 178: Line 178:
A basic starting point is to use [https://github.com/mozilla/playdoh Playdoh].
A basic starting point is to use [https://github.com/mozilla/playdoh Playdoh].


Setup your app to use the playdoh, playdoh-lib pattern. Developers should have an easy install into a virtualenv. Our Operations group will use the libraries under vendor during deployment. Make sure your code loads and runs under either deployment scenario. As always, compare your setup with [https://github.com/jbalogh/zamboni/blob/master/manage.py Zamboni's code] and ask questions in #flux.
Setup your app to use the playdoh and playdoh-lib. The playdoh-lib repo will show up in a directory named 'vendor' as it is a git external. Lots of useful libraries are in vendor, but document any extra python libraries in the requirements/prod.txt. Your app must be able to run from mod wsgi using the vendor libraries.  


Applications must scale to estimated traffic
==== Developers Niceties ====
You may install into a virtualenv and/or run Django via manage.py's runserver command.
 
Our Operations group will use the libraries under vendor during deployment. Make sure your code loads and runs under either deployment scenario!!! As always, compare your setup with [https://github.com/jbalogh/zamboni/blob/master/manage.py Zamboni's code] and ask questions in #flux.
 
Applications must scale to estimated traffic.
 
see [http://mozilla.github.com/playdoh/ Playdoh's Docs] for details.


==== Scaling Tips ====
==== Scaling Tips ====
Confirmed users
1,136

edits