Giter VIP home page Giter VIP logo

heroku-lab13's Introduction

CF Lab 13: Heroku Deployment

Code of Conduct

Ready to share what you've made with the world? Yes!

Then you need to push your code to a web server accessible to the whole Internet. This is your "production environment".

We'll be using Heroku as our production server. Heroku is a "Platform as a Service": your code is plugged in to pre-configured servers, which are started up for the world to access.


Heroku Deployment

  1. Fork and clone the lab repository
  2. Copy the starter code into a new directory OUTSIDE OF THE EXISTING LAB ASSIGNMENT DIRECTORY
  3. Initialize a new repository in your new directory
  4. Create a new Heroku app within your repository
  5. Don't forget to set your Github Token as an environment variable in the Heroku app
  6. Deploy to your new instance!
  7. Let your brilliance shine unto the world!

Submission Instructions

When you are finished with lab, follow these steps to submit your work. Create one Pull Request (aka: "PR") from your Forked repo to the CF repo with your changes, and you'll each submit that same PR link in Canvas.

  1. Ensure that all your local changes are committed to master, and pushed to your origin repo.
  2. Ensure that your master branch is deployed to Heroku
  3. Submit the link to your deployed site as well as the link to your merged master branch on Github.

Learning Objectives

  • Be able to push a dev site to production, so the world can see it.
  • Understand the difference between a static page and a dynamically generated app page.

Resources


Feature Tasks

  1. As a site owner, I want my site running on a robust hosting platform, so that I don't have to hire a sysadmin.
  • Create a new Heroku app for deployment.
  1. As a developer, I want my app to run in a development environment that matches production, so that I can reduce bugs related to infrastructure surprises.
  • Start your app with node server.js
  • TODO: Refactor your AJAX request to proxy your GitHub API calls through the server
  1. As a developer, I want my secret tokens accessed only through environment variables, so that I can keep them secure.
  • Set the proper env vars on your local system.
  • Ensure your code passes ESLint
  • DO NOT create your Heroku app with a default name. If you do accidentally, rename it. Or blow it away, and start again.
  • Link to your live site in your README, for whichever repo you deploy.

Stretch Goals

  1. As a site owner, I want [blog.my-own-domain-name.io] hooked up to my Heroku app, so that I don't have to explain to people how to spell "myblog.herokuapp.com" over the phone.

Rubric

Criteria Pts
Meets all Assignment Reqs 6
Uses idiomatic code style 3
Follows proper Git workflow 1
Total 10

heroku-lab13's People

Contributors

rjb888 avatar

Watchers

 avatar

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.