Intro to Backend Development
  • Introduction
  • SP25 Syllabus
  • Apply to Take the Course
  • Getting Started
  • Weekly Feedback Form
  • Ed Discussion
  • Intro to Backend SP25 Google Calendar
  • Cheat Sheets
    • Assignment Requirements
    • Assignment FAQs
    • Error FAQs 😢
    • Concept FAQs
    • Postman
    • Command Line
    • Virtual Environment
  • Chapters
    • 1. Routes
      • Pre-Class TODO's
      • Lecture
      • Assignment Handout
      • API Specification
    • 2. Databases
      • Pre-Class TODO's
      • Lecture
      • Demo
      • Assignment Handout
      • API Specification
    • 3. Relational Databases
      • Pre-Class TODO's
      • Lecture
      • Demo
      • Assignment Handout
      • API Specification
    • 4. Abstractions
      • Pre-Class TODO's
      • Lecture
      • Demo
      • Assignment Handout
      • API Specification
    • 5. Containerization
      • Pre-Class TODO's
      • Docker Installation
      • Lecture
      • Demo
      • Assignment Handout
    • 6. Deployment
      • Lecture
      • Demo
      • Assignment Handout
    • 7. Images
      • Demo
      • Assignment Handout
    • 8. Authentication
      • Lecture
      • Demo
      • Assignment Handout
    • (Work in Progress) OAuth
      • Pre-Class TODO's
      • Lecture
      • Demo
      • OAuth 2.0 vs OpenID
      • Flask / OpenID example
  • Additional Topics
    • Git and Github
    • HackOurCampus
  • Other AppDev Courses
    • Intro to iOS Development
    • Intro to Android Development
    • Intro to Digital Product Design
  • Deprecated
    • Previous Semester Syllabi
      • FA22 Syllabus
      • SP22 Syllabus
      • FA21 Syllabus
      • SP21 Syllabus
      • FA20 Syllabus
      • SP20 Syllabus
    • Deployment Pre-Class TODO's
    • PA6 Assignment Handout
    • Deployment Demo
    • Final Project (Spring 2019)
      • Final Project Award Winners
Powered by GitBook
On this page
  • Assignment Scope
  • Deploy Your Server
  • 3. Replace your current README.txt
  • 4. Submit Assignment
  • Challenges

Was this helpful?

  1. Chapters
  2. 6. Deployment

Assignment Handout

Contributors: Alicia Wang, Alanna Zhou, Shungo Najima

Assignment Scope

Due Date: Monday 5/5, 11:59pm

You will be deploying from the Dockerfile you created in PA5 to Google Cloud! It should have at least one functioning endpoint from PA4.

Google Cloud is a platform that allows developers to quickly build and deploy apps in the cloud. We hope that this assignment will help you get familiar with Google Cloud so that you can use it for your own remote servers during the hack challenge and in your personal projects.

Deploy Your Server

Here are the requirements for your server:

  • The server has to be publicly accessible (the course staff must be able to access its URL)

  • You must have a working endpoint defined in the README.txt

  • You must have an environment variable file on your server containing your netid and your server must have a base endpoint as shown below. This means making changes to your app.py.

    Note that to receive full credit, your base endpoint must read from your environment variable file (e.g. you cannot simply hardcode the string "sn685 was here!")

GET/

Success Response
<HTTP STATUS CODE 200>
"<YOUR NETID> was here!"

3. Replace your current README.txt

Once again, replace your current README.txt with the one below. If you'd like to save your PA 5 answers, you may want to move the README.txt from that assignment into a different folder. Fill out the required fields as usual, and answer the questions for full credit!

If you have trouble answering the questions, watch the lecture video. Each question is answered there.

4. Submit Assignment

4a. Fill out your README.txt

You should have a newer version of README.txt as mentioned above!

4b. Zip and submit your assignment files

If you have properly followed along with the demo, you should now newly have a .dockerignore file, a .env file, and a few changes to your app.py and docker-compose.yml.

Zip the starter folder and submit on CMS. For reference, your directory structure should look like the following:

pa6/
 |-README.txt
 |-postman_collection.json
 |-src/
    |-app.py
    |-db.py
    |-Dockerfile
    |-docker-compose.yml
    |-.dockerignore
    |-requirements.txt
    |-.env

For clarification, this means that you SHOULD NOT include your virtual environment, pycache, or .db file in your final submission. Doing so will lose you a few points on the project.

4c. Submit Feedback Form

Challenges

None for this assignment! Feel free to explore what Google Cloud has to offer, which is a lot.

PreviousDemoNext7. Images

Last updated 1 month ago

Was this helpful?

To receive credit for your assignment, you must fill out the so that we can better understand how effectively we are teaching and how long students are spending on assignments.

feedback form
588B
README.txt