GAE(Google App Engine) volleyball allstar game voting website
- Langulage: Python
- Web framework:
- Flask (Site FE & BE),
- Google Cloud Endpoint (Admin API BE)
- Database: Google Datastore (ndb)
- CSS framework: Bootstrap 4 (Alpha)
- Javascript framework: AngularJS (1.5)
- Mail service: Sendgrid
-
Clone this git projcet locally
git clone https://github.com/olala7846/ntuvb-allstar.git
-
Install python packages (with pypi & virtualenv)
$ virtualenv venv $ source venv/bin/activate $ pip install -r packages.txt
-
Install css/js packages
$ npm install bower #Install bower $ bower install #Install packages under ./bower_compoments
-
Launch local server and start coding!
$ sh ./script/launch_dev_server.sh $ sh./script/open_chrome # for local cloud endpoint
-
To send email, create your own
secrets.py
# secrets.py SENDGRID_ID='YOUR_SENDGRID_ACCOUNT' SENDGRID_PASSWORD='YOUR_SENDGRID_PASSWORD`
WARNING!! NEVER COMMIT THIS FILE
-
Candidate avatars are keep under ./static/img/candidates/ currently the image name is the md5 hash of candidate name see
models.candidates.avatar_url
go to http://my.host/_ah/api/explorer
first create a election with voting.createElection
after that
see voting.setupElection
- Database schema: see
models.py
- Webserver: see
voting.py
- Admin api server: see
voting_backend.py
- Main queue: see
queue.yaml
- Cron job: see
cron.yaml