-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Scaffold #478
App Scaffold #478
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding this Benoit! Every thing worked well for me!
@@ -0,0 +1,19 @@ | |||
# This file specifies files that are *not* uploaded to Google Cloud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not -> should not be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
|
||
The workflow described here works from CloudShell or any node with the [gcloud CLI](https://cloud.google.com/sdk/docs/install) has been properly installed and authenticated. | ||
|
||
This means that you can develop your application fully locally on your laptop for example, as long as you have run `make auth` after installing the [gcloud CLI](https://cloud.google.com/sdk/docs/install) on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove "fully"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@@ -0,0 +1,51 @@ | |||
async function queryApi(prompt) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment at the top of this file to describe what this file is doing. Since there's so many files it'll be good to know what the purpose of this file is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Left a minor comment.
Also, I think it's better to name the directory under scaffolds
to more specific name instead of generic app_engine
so that we can add more scaffolding examples here. @BenoitDherin
|
||
|
||
@app.route("/myapp", methods=["GET"]) | ||
def _answernaut(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove this internal code name and use more generic one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do both! Thanks @takumiohym .
This PR implements the first part of an app scaffold to be deployed on AppEngine.
It contains:
./app/static
./scripts
Makefile
with targets to create the virtual environment (make venv
), to run the app locally (make run
), to deploy the app on AppEngine withmake deploy
.make tests
For now, the app is dummy, returning to the user only what the user enters. The app logic will come as a follow-up PR.
Testing notes: Test the app locally on your laptop or on CloudShell following the step in the
README.md
. (For CloudShell skip the instructions about installing and authenticating the gcloud CLI.)