Coder Social home page Coder Social logo

demo's Introduction

TTTTT

Tommy's Terrifyingly Tender Tech Talks

0. Heroku

  1. Create an account at Heroku.
  2. Create a new 'app' on Heroku (Apps > Create a new app).
  • Give it a name
  • Copy the git URL for the app
  1. Add the remote to your repo
  • git remote add heroku [GIT URL HERE]
  1. Your app's ready to push up to heroku!
  • Your computer might not be though.
  • begin; 0. git push heroku master && return 0. If you have SSH problems, I feel bad for you son. I got 99 problems but SSH aint one.
    • This will look something like "you don't have access"
    • Make sure you're logged in to Heroku on the command line
      • heroku login && retry
    • Are the SSH keys in the computer yours? This is probably the problem if you're on one of our computers 0. Blow out the SSH keys: rm ~/.ssh/id_* 0. heroku keys:add to generate a new SSH key, and push them up to your Heroku account. 0. Retry
  • Paperclip 0. gem 'paperclip' and gem 'aws-sdk' 0. Sign up for AWS, create an S3 bucket
    • Make sure you set the region to "US Standard"
    1. Check out:
    • app/models/user.rb
    • config/application.rb
    • app/views/users/new.html.erb
      • <form enctype="multipart/form-data">
  • Figaro
    • gem 'figaro'
    • rails generate figaro:install
    • rake figaro:heroku
    • ENV['KEY_NAME']

2. Log in with Facebook!

  • Create a new app at Facebook Developers
    • Go to Settings > Advanced
      • Whitelist your Oauth redirect URIs in the "Valid OAuth redirect URIs"
        • You should put localhost:3000 and your Heroku url in there.
  • Check out:
    • Gemfile: gem 'omniauth-facebook'
    • config/initializers/omniauth.rb
    • config/routes.rb
    • app/views/sessions/new.html.rb
    • app/controllers/oauth_callbacks.rb
    • app/models/user.rb

demo's People

Contributors

tduek avatar

Watchers

James Cloos avatar Leah Itagaki 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.