Coder Social home page Coder Social logo

blogz's Introduction

Blogz: a blogging app

ABOUT

  • Built off of the Build-A-Blog app
  • Integrate User Sign-Up app
  • LARGELY borrowing from Get-It-Done app

SKELETON

  • Base HTML for templates
  • Login page
  • register page
  • Blog home (index, all user) page
  • New post page
  • View post temp
  • Vew Indv. user (singleUser) blog temp
  • Logout route (no temp)
  • DB w/ User, Blog tables

UX OUTLINE

  • Immediately redirected to blog home
  • Nav links at top of page (login, signup, logout, new post)
  • See all posts by all pages (ordered?)
    • Title h1, owner p, italics
    • Title links to view post temp
    • owner links to indv. user page
  • If not signed in, new post nav link will redirect to login
  • Login requires username (not email) and password
    • Errors if field(s) left empty, user doesn't exist (suggest sign-up), password not match db
    • Redirected to New Post page if successful
  • New post page taken from Build-A-Blog, redirects to home page

ROUTES

'/':

Template: index.html For each user of Blogz, add list item with link to '/blog?user={{userId}}'

'/login':

Template: login.html Form (no action, method='post') Formatted as table with username and password inputs and login button HTML formatted error messages for now Errors for unregistered user, wrong/mismatched passowrd Seccess adds username to session, redirects to '/newpost'

'/signup':

Template: signup.html Form similar to 'login', but with added verify field validation pulled from 'User Signup', but username instead of email Seccess adds username to session, redirects to '/newpost'

'/logout':

No template Delete username from session and redirect to '/blog'

'/blog':

Template: blogs-all.html For each post by every user, display

title

,

text

and
owner
(ital) Owner links to all posts by that user ( '/blog?user={{userId}}' ) Title links to '/viewpost?postId={{postId}}'

'/viewpost':

Template: veiwpost.html

title

,

text

,
owner
(ital) Owner links to '/blog?user={{userId}}'

blogz's People

Contributors

wbvtler 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.