1 | # ACE API Server
|
2 |
|
3 | RESTish API Server module used by ACE projects
|
4 |
|
5 | ### Documentation
|
6 |
|
7 | Documentation is currently a work in progress.
|
8 |
|
9 | http://petstore.swagger.io/?url=https://rawgit.com/StudioThomas/ace-api-server/master/docs/api.json#/
|
10 |
|
11 | ### Environment Variables
|
12 |
|
13 | ENVIRONMENT=development|testing|production
|
14 |
|
15 | DEBUG=false # Change to nano etc
|
16 |
|
17 | CACHE_ENABLED=false
|
18 | CACHE_TTL=30
|
19 | CACHE_COMPRESS=false
|
20 |
|
21 | DB_URL=
|
22 |
|
23 | API_PREFIX=
|
24 | API_BLACKLIST_TOKEN=
|
25 | API_BLACKLIST_REFERRER=
|
26 |
|
27 | SESSION_SECRET=
|
28 | SESSION_TTL=
|
29 |
|
30 | AUTH_TOKEN_SECRET=
|
31 |
|
32 | DEV_SLUG=
|
33 | DEV_USER_ID=
|
34 | DEV_ROLE=
|
35 |
|
36 | METER_CLOUDANT_REQUEST=false
|
37 | METER_CLOUDANT_INTERVAL=false
|
38 |
|
39 | ASSIST_URL=
|
40 | ASSIST_USERNAME=
|
41 | ASSIST_PASSWORD=
|
42 |
|
43 | EMBEDLY_API_KEY=
|
44 |
|
45 | LOGENTRIES_TOKEN=
|
46 |
|
47 | AWS_IAM_ACCESS_KEY_ID=
|
48 | AWS_IAM_ACCESS_KEY_SECRET=
|
49 |
|
50 | REDIS_URL=
|
51 | # or
|
52 | REDIS_HOST=
|
53 | REDIS_PORT=
|
54 | REDIS_PASSWORD=
|
55 |
|
56 | STRIPE_CLIENT_ID=
|
57 | STRIPE_CLIENT_SECRET=
|
58 | STRIPE_API_KEY=
|
59 |
|
60 | GOOGLE_CLIENT_ID=
|
61 | GOOGLE_CLIENT_SECRET=
|
62 |
|
63 | INSTAGRAM_CLIENT_ID=
|
64 | INSTAGRAM_CLIENT_SECRET=
|
65 |
|
66 | VIMEO_CLIENT_ID=
|
67 | VIMEO_CLIENT_SECRET=
|
68 |
|
69 | AWS_S3_BUCKET=
|
70 |
|
71 | ZENCODER_API_KEY=
|
72 | ZENCODER_S3_BUCKET=
|
73 | ZENCODER_S3_CREDENTIALS=
|
74 |
|
75 | TWITTER_ACCESS_TOKEN_KEY=
|
76 | TWITTER_ACCESS_TOKEN_SECRET=
|
77 | TWITTER_CONSUMER_KEY=
|
78 | TWITTER_CONSUMER_SECRET=
|
79 |
|
80 | ### Useful
|
81 |
|
82 | # Heroku rebuild (similar to rm -rf node_modules locally)
|
83 | $ heroku repo:purge_cache -a appname && \
|
84 | git commit --allow-empty -m "rebuild" && \
|
85 | git push heroku master
|