Giter Site home page Giter Site logo

appenginestart's Introduction

AppEngine Website Basic

Table of Contents

Getting Started

Installing Python 2.7

Head over to Python.org and download the latest version of Python 2.7. Make sure you add Python 2.7 to your system's path.

Installing Google Cloud SDK

Head over to Google's Cloud SDK for Python 2. Once on that site, you need to complete steps 2, 3, and 5 of the Installing Cloud SDK for Python 2.

Setup App Engine Project

Clone this repository and cd to it using the command line. Once in the folder, type:

    C:\Projects\AppEngineStart> gcloud init 

This will initialize the gcloud project in the folder. We want to create a new configuration so go ahead and choose Create a new configuration.

Next, it's going to ask you to name the project. You can name it whatever you'd like. After that, you're going to want to Log in with a new account. Go ahead an log in with a non-school related email. Again, DO NOT USE YOUR SCHOOL EMAIL.

After that is done, it'll ask you to pick a cloud project. Since you don't have one, you're going to select Create a new project. For the project ID, go ahead and name it the following: dsc-your-university-name.

Deploying the Website to the Cloud

Now that you have finished your website, the next thing you need to do is deploy the project to the cloud. Open the command line within the project folder and type:

C:\Projects\dsc-csusm> gcloud app deploy --project [project-id] 

The [project-id] would be dsc-your-university-name. This command deploys your project to the cloud. Anytime you want to publish your changes, you have to do this command. In order to view your website, simply visit www.dsc-your-university-name.appspot.com. That's it! You have your own website now.

Running a Local Server for Testing

Since all that is done, you are now able to work on the project and change the HMTL, CSS, JS, etc. anything to make your website unique. But wait, how can I view my changes? Well, good thing I asked huh. Luckily for us, the Cloud SDK has a built in tool for running a local instance of your project. In order to do that, you need to type:

C:\Projects\dsc-csusm> dev_appserver.py app.yaml 

Once you run this command, it'll start a local server for your project and you can view your changes in real time. Pretty neat! If you want to stop the server for whatever reason, simply Ctrl + C.

FAQ

How can I get a custom domain instead of the .appspot.com?

You can read more about getting a custom domain for your app engine project here.

appenginestart's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.