Skip to content

Instantly share code, notes, and snippets.

@halloffame
Last active December 8, 2016 20:40
Show Gist options
  • Save halloffame/4da3863935f0faacb59538c0e0815416 to your computer and use it in GitHub Desktop.
Save halloffame/4da3863935f0faacb59538c0e0815416 to your computer and use it in GitHub Desktop.
Brief overview of some basic web technologies we use.

Git

Git provides basic version control for your code. It also enables you to easily collaborate on shared code with other people.

Basic commands

# Initialize a new local git repository
git init

# stage all files
git add .  

# stage specific files
git add index.html jedi_cat.png

# commits all staged files
git commit -m 'Initial Commit'

Useful Links

HTML

Used to define the content and structure of any and all websites.

Useful Links

Ruby on Rails

# Assuming you have ruby >= 2.2.2 installed on your system
gem install rails --no-ri --no-rdoc

# Create new application
# For simplicity sake, we are skipping some defaults
rails new library --skip-spring --skip-turbolinks --skip-action-cable

cd library

rails s # to run server
ctrl-c # to stop server

git init
git add .
git commit -m "Initial Commit"

rails g scaffold Game title rating:integer image_url

rails db:migrate

rails s
# visit http://localhost:3000/games

Useful Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment