-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
60 lines (36 loc) · 1.45 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Project template for AppEngine
Offers quick and easy setup of all of the following:
- buildout
- AppEngine SDK
- flask framework
- unit tests
Why create yet another boilerplate?
There are two good alternatives you should check out:
- http://gae-init.appspot.com/
- https://github.com/kamalgill/flask-appengine-template
Those two copy source code of all the dependencies into their repositories.
I didn't like that approach because it felt wrong - upgrades are hard,
commit logs are noisy, there's existing infrastructure and tools for
distribution of Python packages.
Alternatives also package in jQuery, Bootstrap and other front-end stuff.
I think there are more appropriate ways to manage JS libs:
Bower, Grunt, Yeoman.
appengine-flask-template focuses on the server-side.
This boilerplate intends to always remain as small and flexible as possible.
Just like Flask (maybe a bit more bloated - sessions, security and OAuth are
used by pretty much any website in this Web2.0 era).
Getting Started
1. Clone the repository:
# git clone https://github.com/paulftw/appengine-flask-template.git mycoolwebsite
2. Virtualenv is not required but highly recommended, because it's awesome.
I'm using virtualenvwrapper, so:
# mkvirtualenv mycoolwebsite
# workon mycoolwebsite
3. Fetch buildout and install all dependencies:
# python bootstrap.py
# bin/buildout
4. Start a dev server
# bin/dev_appserver app
and open http://localhost:8080/ in your browser
5. ???
6. Profit!