Git Product home page Git Product logo

lab-file-upload's Introduction

Ironhack Logo

Express File Uploads | IronTumblr

Requirements

Submission

Upon completion, run the following commands

$ git add .
$ git commit -m "done"
$ git push origin master

Navigate to your repo and create a Pull Request -from your master branch to the original repository master branch.

In the Pull request name, add your name and last names separated by a dash "-".

Include a link to your deployed heroku app in the pull request.

Deliverables

Complete all of the non-bonus iterations. No styling is required, but is suggested as bonus.

Instructions

Introduction

Tumblr is an ultra popular microblogging website.

A microblog is:

A social media site to which a user makes short, frequent posts.

This is easier shown than described, so check out this tumblr filled with funny dog memes.

Iteration 1 | User Profile Pictures

In the starter code, we've already provided a User model and the authentication logic. Unfortunately, the user doesn't have a profile picture.

Fix the User Registration so that it allows the user to upload a file as their profile image.

Iteration 2 | Posts

In this iteration, create the bread and butter of Tumblr, the Post.

A post should have the following attributes:

  • content - Text belonging to the post
  • creatorId - ObjectId of the post's creator
  • picPath - Where the picture is stored
  • picName - The picture's name

For this iteration you must create the model, along with the new, create, show and index routes. This should include file uploading.

A user should be logged in to create a post, but not to view.

The index will be the home page, and simply display all of the posts on the website.

Iteration 3 | Comments

Posts have comments attached to them. Create the Comment model as a subdocument of the Post.

A comment can have images attached to it, but not all do.

The model should have the following attributes:

  • content
  • authorId
  • imagePath
  • imageName

You should create routes to create new comments. Comments should be displayed on the Post show page.

Iteration 4 | Deploy!

The last step in IronTumblr should be to deploy to Heroku. Don't forget to deploy your database on mongolab.

Your site should be live and functioning with a working URL.

lab-file-upload's People

Contributors

felipe-parra avatar jalexy12 avatar nizaroni avatar papuarza avatar

Watchers

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