Coder Social home page Coder Social logo

wdinstagram_rails's Introduction

WDInstagram

In this repository, there is a brand new rails application. It has no code in it except for the things that are generated with rails new.

https://media.giphy.com/media/iccmKvtzsmEc8/giphy.gif

Prompt

Today you're going to make your own version of Instagram (or something very close to it!). Your photo feed app will have full CRUD capability and operate on a single Post model.

A Post has the following:

  • author_name
  • photo_url
  • title

Your app should have the following RESTful actions:

  • index (displays all entries)
  • show (displays a specific post)
  • new (displays a form to create a new post)
  • create (saves a new post it to the database)
  • edit (displays a form for editing a particular post)
  • update (takes input from the edit form and updates the post in the db appropriately)
  • destroy (deletes a specific post from the database)

Further

Add a column for caption to your post, which is a text description of the shot. You'll need to generate a database migration for this and then update the rest of your app to be able to display these captions.

Further

Add a rails timestamp to your table.

Further

Sort your feed by date, ascending or descending, depending on what the user wants. (this will have to be a request parameter that you lok for, and sort according to it's value) - e.g. (?sort=date&order=dec)

Further

  1. Create the ability to make a new post using a random GIF from the Giphy API
  2. Try using the official giphy API gem: https://github.com/Giphy/giphy-ruby-client

Further

Add a second kind of post - a you tube video.

The thing you store in the DB will be an embedded youtube link. https://www.w3schools.com/html/html_youtube.asp, https://gorails.com/forum/embed-youtube-video-in-rails-app

Create the CRUD routes for this kind of post.

Further

Add all of the videos to the root route index page.

Further

Intermix them with the photos, sorted by date.

Further

Add a third kind of post - a text only post. (text)

Further

Intermix them with the photos, sorted by date.

Further

Alter the show routes for each post type. (/post/:id, /video/:id, /text/:id) Using the ruby twitter gem to get a list of tweets for each post that are associated with the title.

(use the API to do a search and display the resulting tweets of that search)

wdinstagram_rails's People

Contributors

andrewsunglaekim avatar awongh avatar benjacoblee avatar

Stargazers

 avatar

Watchers

 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.