Skip to content

PhoenixDave/rps-frontend

 
 

Repository files navigation

RPS Bootstrap

Setup

Follow the usual setup steps:

  1. Ensure that you've forked this repository to your own GitHub organization. So, you should have a copy at https://github.com/[YOUR ORG NAME]/rps-frontend.

  2. Follow the Starting on a project with Cloud9 guide to set up your workspace.

  3. I always recommend closing as many browsers tabs as possible from the last project you were working on — it's very easy to get confused with too many tabs going.

  4. At a Terminal prompt, set up the project (install a bunch of powerful libraries on the workspace, whatever the project depends upon, etc):

    bin/setup
    
  5. Once the previous step completes successfully and you're back at the $ prompt, launch your Rails application server by clicking the "Run Project" button at the top of the IDE. You'll know it launched when it says "Press Ctrl-C to stop".

  6. Visit the live application preview URL that it gives you to see the app running.

  7. If you want to peek at the instructor's workspace from time to time (e.g. to catch up if you fall behind), it is located at (depending on which section you're in):

    Ignore the "request access" banner at the top; that is only if you need to edit my code (which you don't). You can click into any folder and file to view anything already.

Intermediate target

http://rps-bs4-intermediate.herokuapp.com/

Final target

http://rps-bs4-final.herokuapp.com/

Some handy links

Documentation

Assets

  • These folks helpfully host bootstrap.css on their own server: BootstrapCDN

  • Bootstrap's Javascript components (like modals, hamburger menu, carousel, etc) depend on another open-source library called jQuery; you can grab it from this CDN: jQuery CDN.

  • Ultimately, a quick and easy way to get all of Bootstrap and Font Awesome is to include the following in the <head> of your document:

    <!-- Expand the number of characters we can use in the document beyond basic ASCII 🎉 -->
    <meta charset="utf-8">
    <!-- Connect Font Awesome CSS -->
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
    <!-- Connect Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
    <!-- Connect Bootstrap JavaScript and its dependencies -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.bundle.min.js"></script>
    <!-- Make it responsive to small screens -->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

Bonus

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.9%
  • Ruby 16.5%
  • HTML 6.9%
  • Other 0.7%