-
Notifications
You must be signed in to change notification settings - Fork 4
Description
If you need some help getting started in Rails
https://gist.github.com/jendiamond/5a26b531e8e47b4aa638
Some other tutorials to help you get up to speed
- Try Ruby
- Try Git
- Intro to the Terminal
- Command Line Crash Course
- HTML, CSS, JavaScript 1
- HTML, CSS, JavaScript 2
If you need help installing Rails and you are on Mac or Linux
http://guides.railsgirls.com/install/
If you need help installing Rails and you are on Windows
https://sourceforge.net/projects/rails-girls-workshop-vm/files/rails-workshop.tar/download
The Project:
Currently we, the Rails Learners Group, are meeting on Wednesday nights and are building an ecommerce WebApp from scratch, step-by-step. We are not using a tutorial. We are diving into each piece as we need it in an Agile fashion.
We are each individually working on the same incremental step "in parallel." We discuss each step before and after we have done them so we can be sure that everyone is on the same page and that newcomers can catch up with us.
If you want to catch up:
- Read the README https://github.com/LARailsLearners/_first_app_instructions
- Specific directions and help:
https://gist.github.com/jendiamond/f6432d1a102b2ca6a429 - Look at the closed issues which list the "homework" or the phases of our building process.
https://github.com/LARailsLearners/_first_app_instructions/issues?q=is%3Aissue+is%3Aclosed - The list below provides links to each homework assignment and its corresponding issue on GitHub.
Past Homework:
Homework from 5/13
Create your first app
-
Install Postgres
-
Create your first app (remember, make sure to pass the "postgres option," looks like this:
$ rails new insert_my_appname --database=postgresql
-
Use a "scaffold" to generate your first User model (Important: please call it "User"). Your User model show have 3 fields (1) firstname (2) lastname (3) email
Homework from 5/20
Build User Authentication
"Authentication is the process of establishing, and subsequently confirming, a site user’s identity. It is how an app recognises, who you are." ~ http://www.gotealeaf.com/blog/authentication-methods-in-rails
Many of us will use the very popular solution called Devise which is a Rails Gem.
Use whatever solution you want to use.
Homework from 5/27
Install and understand Bootstrap and what it provides
"Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development."
Provides built-in styles and a responsive framework.
Homework from 6/3
Understand Devise by Using its methods on the Product model
- Create a Products resource using scaffolding with the following attributes - name:string, description:text and price:float This scaffold will create product controller, model and views etc
- Understand the methods which devise gives you (and use some of them) one of the goals, is to require the user to be logged in to access all the product views -Display current_user anywhere. -Use one other method
Homework from 6/10
Associate the User and Product table - show the product list
Homework from 6/17
Add pundit for user authorization
Use and understand the gems Pundit or CanCan for user authorization.
Homework from 6/24
Setup Testing
Use minitest or Rspec and test some of your application.
[Find and install an admin-panel gem](Find and install an admin-panel gem)
Search for an "admin panel" gem, install it, and start to understand its basic usage.
An "admin panel" is some sort of dashboard that you would give a super-user, to oversee the entire app.
database tools
Here are a couple database tools to view your databases and tables as you develop:
For Postgres: pgAdminIII
For SQlite3: SQLiteBrowser
It is useful to develop with one of these open in another window.
It is nice to be able to press refresh and always be able to see that new data is being added to your database, or in the case of a migration, that a new column has been added correctly to a table, or a new table has been added, etc.
If you're on Ubuntu, these are simple apt-get installs (and I'm pretty sure these are even in the Ubuntu Software Center).
Do both so that you have them.
Mac/Windows people, please share how you got them.
On the Mac pgAdmin3 is a simple download and install:
http://www.postgresql.org/ftp/pgadmin3/release/v1.20.0/osx/
Same with SQLiteBrowser:
http://sqlitebrowser.org/
Those sites also have Windows versions.