@@ -18,19 +18,37 @@ Deployment and application code adaptors are being added for the following:
18
18
| Google Kubernetes Engine | ` gcloud ` & ` kubectl ` | |
19
19
20
20
21
- | Platform | Adaptor | Status |
21
+ | Platform | Adaptor | Code/Config |
22
22
| --------------------------| -----------------------| :----------------------:|
23
- | AWS Lambda Python <= 3.6 | [ Flask-Lambda] ( https://github.com/sivel/flask-lambda ) | :heavy_check_mark : |
24
- | AWS Lambda Python >= 3.6 | [ Flask-Lambda-Python36] ( https://github.com/techjacker/flask-lambda ) | :heavy_check_mark : |
23
+ | Local Development | None | [ :floppy_disk : ] ( run.py ) |
24
+ | AWS Lambda Python >= 3.6 | [ Flask-Lambda-Python36] ( https://github.com/techjacker/flask-lambda ) | [ :floppy_disk : ] ( run_lambda.py ) |
25
+ | AWS Lambda Python <= 3.6 | [ Flask-Lambda] ( https://github.com/sivel/flask-lambda ) | [ :floppy_disk : ] ( run_lambda.py ) |
25
26
| Azure Functions | | |
26
27
| Google Cloud Functions | | |
27
28
29
+ -----------------------------------------------------------
30
+ ## Setup
31
+
32
+
33
+ #### 1. Create ` .env ` file and update contents
34
+ This is used to set the environment variables required for deployment and local development.
35
+ ```
36
+ $ cp .env.example .env
37
+ $ vim .env
38
+ ```
39
+
40
+ #### 2. Create a virtualenv then install requirements:
41
+ ```
42
+ $ make env
43
+ $ source env/bin/activate
44
+ $ make deps
45
+ ```
28
46
29
47
-----------------------------------------------------------
30
48
## Example Usage
31
49
32
50
#### 1. Set Environment
33
- Ensure you have the necessary environment variables set (see [ setup instructions] ( #setup ) above).
51
+ Ensure you have created your virtualenv and have the necessary environment variables set (see [ setup instructions] ( #setup ) above).
34
52
```
35
53
$ source env/bin/activate
36
54
$ source .env
@@ -59,7 +77,7 @@ GET /artists
59
77
## AWS Lambda
60
78
61
79
### Terraform Deployment
62
- Ensure you have the necessary environment variables set (see [ setup instructions] ( #setup ) above).
80
+ Ensure you have created your virtualenv and have the necessary environment variables set (see [ setup instructions] ( #setup ) above).
63
81
64
82
##### Setup
65
83
Create terraform state bucket.
@@ -91,24 +109,6 @@ GET artists
91
109
```
92
110
93
111
94
- -----------------------------------------------------------
95
- ## Developer Setup
96
- Set the environment variables required for deployment and local development.
97
-
98
- #### 1. Create ` .env ` file needed for deployment and edit contents.
99
- ```
100
- $ cp .env.example .env
101
- $ vim .env
102
- $ source .env
103
- ```
104
-
105
- #### 2. Create a virtualenv then install requirements:
106
- ```
107
- $ make env
108
- $ source env/bin/activate
109
- $ make deps
110
- ```
111
-
112
112
-----------------------------------------------------------
113
113
## Test
114
114
```
0 commit comments