-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.md~
48 lines (33 loc) · 1 KB
/
README.md~
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
# REST API With Flask & Google Datastore & Google App Engine
> Api For Flutter App: MyFlutterApp.github.com
## Quick Start Using Venv
``` bash
# Create a Google Cloud Project
https://cloud.google.com/appengine/docs/standard/python3/building-app/creating-gcp-project
# Connect SDK To Google to access DataBase
$ gcloud auth application-default login
# Create an isolated Python environment in a directory external to your project and activate it:
$ python3 -m venv env
$ source env/bin/activate
# Install dependencies
$ pip install -r requirements.txt
# Run Server (http://localhost:8080)
python main.py
```
## Deploy On Google App Engine
``` bash
# Create a Google Cloud Project
https://cloud.google.com/appengine/docs/standard/python3/building-app/creating-gcp-project
# Connect SDK To Google
$ gcloud auth application-default login
# Deploy App
$ gcloud app deploy
# Go To Url
$ gcloud app browse
```
## Endpoints
* GET /bday
* GET /bday/:id
* POST /bday
* PUT /bday/:id
* DELETE /bday/:id