Skip to content
Fandom Statistics
Python JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
dependencies.txt

README.md

fandomstats

Fandomstats runs on Google App Engine.

Dev Setup

  1. Install Dependencies
  2. python
  3. pip: python get-pip.py
  4. Everything else: from the top level folder run: pip install -r dependencies.txt
  5. Generate secret keys for CSRF protection by running generate_keys.py script at src/application/generate_keys.py, which will generate the secret keys module at src/application/secret_keys.py
  6. Install the latest Google App Engine SDK from: https://cloud.google.com/sdk/
  7. run curl https://sdk.cloud.google.com | bash and follow the prompts
  8. restart your terminal (so the $PATH updates)
  9. authenticate to Google Cloud Platform by running gcloud auth login
  10. test running the app with dev_appserver.py (below). If you get "command not found":
  11. check if the Python components are installed: gcloud components list (it's in the first table)
  12. if not, install them with gcloud components update pkg-python

Run the app:

gcloud preview app run src/app.yaml

(it might ask you to 'set your project' - use the application ID in app.yaml)

Old way of doing this (might work if you haven't updated GAE recently):

dev_appserver.py src/

Environment runs at http://localhost:8080

Run tests:

python apptest.py path/to/your/googleappengine/installation

If you want to run only one test class or only some of the tests (i.e. only the integration tests), you can use the --test-pattern argument, like this:

python apptest.py path/to/your/googleappengine/installation --test-pattern=integration* python apptest.py path/to/your/googleappengine/installation --test-pattern=Ao3data_test.py


### Deploy the app:

appcfg.py update src/

You can’t perform that action at this time.