aveshcsingh / tartanhacks_demo Goto Github PK
View Code? Open in Web Editor NEWThe [very basic] demo used in my TartanHacks presentation.
The [very basic] demo used in my TartanHacks presentation.
This code was used for a short Rails tutorial at TartanHacks. It was built on: Ruby: 1.9.2 Rails: 3.1.3 To run the code, clone the repository and run: rake db:migrate rails s -- The following process was used to create this demo app. If you have any questions, email [email protected], or come find me at TartanHacks. rails new debt_app rails s; Go to localhost:3000 rails generate scaffold user name:string email:string [Show migration in db/migrate] rake db:migrate [Show new code in controller and view] rake routes Go to localhost:3000/users/new rails generate migration AddSSNToUsers SSN:string [Show migration] rake db:migrate Create new user over terminal Add SSN to app/views/_form.html.erb Add SSN to app/views/show.html.erb Show new user over web interface #Create Debts rails generate scaffold debt amount:integer user_id:integer Add to models/debt.rb: belongs_to :user validates_presence_of :user Add to models/user.rb: has_many :debts Show on command line creating a new Debt in 2 ways: 1. Debt.create... 2. User.first.debts.create(:amount => 500) Add ability to create debt from web interface: Add to app/views/debts/_form.html.erb Add to app/views/debts/show.html.erb Demonstrate asset pipeline: Add Squirrel.jpg to app/assets/images Add to a view: <%= image_tag "Squirrel.jpg"%>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.