Giter VIP home page Giter VIP logo

guess-the-number-sinatra's Introduction

Guess The Number

Design the Guess The Number game for TechLadies pre-bootcamp workshop

Guess the Number is a basic ruby application built on top of Sinatra for the purposes of TechLadies pre-bootcamp workshop, which covers the basics of the web, HTML and CSS. We will also cover some basic Git concepts. Given that everyone may be using different machines with different operating systems, we will be using Cloud9 as our development environment.

Resources used

Getting set up

On GitHub

  1. Sign up for a GitHub account here.
  2. Once that is done, come back to this page. On this page, fork this repo by clicking the Fork button in the top right corner (ask for help if you can't find it).
  3. Leave this window open as you will need to perform further set up actions to integrate smoothly with Cloud9.

Setting up SSH between Github and Cloud9

  1. You should receive an email notifying you to sign up for an account on Cloud9. If you do not have one, please alert us at the workshop.
  2. Go to https://c9.io/ to sign up for a Cloud9 account by clicking on the GitHub icon in the top right corner. You will need to authorize Cloud9 to use your Github account.
  3. Once it's done, you will be at the Dashboard page.
  4. Go to https://c9.io/account/ssh to access your SSH Settings page.
  5. Open another window and go to https://github.com/settings/keys to access your SSH and GPG keys on Github.
  6. Click on the green New SSH key button in the top right corner.
  7. Enter "Cloud9 IDE" in the Title field.
  8. Switch back to the SSH Settings page in the previous window and copy everything in the grey box. Paste the contents in the Key field on your SSH and GPG keys page on Github.
  9. Click on the green Add SSH key button.

On Cloud9

  1. Click on Create New Workspace.
  2. Enter a name for your workspace and a brief description.
  3. Fill in [email protected]:<YOUR_USER_NAME>/guess-the-number-sinatra.git in the field Clone from Git or Mercurial URL (optional). This is the repository that you forked to your own account in the earlier steps.
  4. Select Ruby for the Choose a template option.
  5. Click on the green Create Workspace button to proceed.
  6. You should see a loading window, and this may take a while, so keep the window open and let it run. Please try this at home.
  7. When things are set up, you should see your workspace, with a file manager in the left column, a text editor taking up most of the space in the main right area and a smaller terminal in the bottom of the right area.
  8. In the terminal, enter gem install rails `and press enter.
  9. In the terminal, enter bundle install and press enter.
  10. To run the app, enter ruby app.rb -p $PORT -o $IP in the terminal and press enter.

guess-the-number-sinatra's People

Contributors

learnemy avatar huijing avatar gabehollombe avatar

Watchers

Marta 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.