Coder Social home page Coder Social logo

microblog's Introduction

General Assembly Logo Microblog Lab

Summary

Imagine you want to let people write really short public blog posts. The homepage of your microblog app should be a list of these micro-posts with a form to add a new one. We don't have a backend yet, so we won't be worrying about login, users, followers, and all of that good stuff quite yet. The new posts won't even stay on the page when we refresh. But we can create new blog posts, have them added to the page!

Something like this:

alt tag

Skills:

  • Use Git to save your progress
  • Use JavaScript to access the DOM
  • Use HTML forms to get input from the user
  • Style your blog using CSS. Use responsive design!
  1. Start by FORKING this repository!!
  2. Clone from your fork. You will find files called index.html, style.css, and app.js files.
  3. Your HTML page should have a list in it that will display the posts. It can be empty, with JS adding posts, or have some dummy posts in it to start.
  4. Your JS will hold an array of posts that it appends to the HTML list.
  5. When your user clicks submit, your JS should handle taking the content of the form and putting it in that array, and updating the DOM.
  6. Make frequent commits and pushes. You should commit every time you add a new feature, and it is working! A feature can be something as small as adding a little style.

Stretch Challenges (optional)

  • Save posts to sessionStorage or localStorage.
  • Sort posts by order created OR alphabetically
  • Add comments to posts
  • Add a count of how many posts have been posted that updates every time a new post is created.

microblog's People

Contributors

brandiw avatar simvirk5 avatar

Watchers

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