Giter Site home page Giter Site logo

initialgram's Introduction

Initialgram

In this app, we'll put together all the things we've learned to create a service where users can upload pictures, follow other users to see their pictures, comment on pictures, and favorite pictures.

Topics covered include:

  • File uploads with CarrierWave
  • Authentication and authorization with Devise
  • Customizing Bootstrap with Less
  • Advanced model associations
  • Customizing variable route segment parameters

Devise Helpers

Named routes

  • new_user_registration_path
  • edit_user_registration_path
  • new_user_session_path
  • destroy_user_session_path (HTTP Verb 'DELETE')

Bread and butter helper methods

  • user_signed_in?
  • current_user

Predefined filter method

  • authenticate_user! to require that someone (anyone) be signed in
  • Most of the time, you still have to define your own.

If necessary, direct cookie access

  • user_session

Authorization

  • Make it so that users cannot modify or destroy other users
  • Make it so that users cannot modify or destroy other users' pictures
  • Make it so that users cannot create, modify or destroy other users' follows

Miscellaneous

  • A user's home feed should be the pictures#index action. Their show page should be their own pictures only.
  • A user should be able to follow/unfollow another user by clicking a link on the other user's show page.
  • A user should not be able to follow another user twice.
  • What are some ways we could mix in a user's own pictures into the home feed?

initialgram's People

Contributors

raghubetina avatar

Watchers

James Cloos avatar

Forkers

kpyw tesstryan

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.