Coder Social home page Coder Social logo

riley-rangel / readable Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 297 KB

A React web-app for members who want add content for community discussion. (Udacity React ND)

JavaScript 94.98% HTML 4.48% CSS 0.53%
create-react-app material-ui react react-modal react-redux redux redux-form redux-saga

readable's People

Contributors

ayoalik avatar forbiddenvoid avatar jamesbibby avatar nomemoryerror avatar richardkalehoff avatar riley-rangel avatar thalescomp avatar

Stargazers

 avatar  avatar

readable's Issues

User can add a post under a single available category.

Motivation

Users need the ability to add posts for others to see, and eventually comment on.

Implementation

  • Create button to which opens modal onClick.
  • Create a CreatePost component which will be the modal-form to add a new post.
  • Connect modal with API route to save the post in the database.
    • Define an API method to hit route to save a new Post object.
    • Update CreatePost to store form state in redux store via redux-form.
    • Use redux-form's reset prop to reset form to the default state (empty).
    • Add a method to App.js which takes a post object and sends that as the body on the API save post route.
      • Define constants to initiate, success and fail cases on submit post.
      • Define action generators for success and fail cases.
      • Update initial state object to include empty array for posts.
      • Update reducer to include cases for success and fail.
      • Define saga to prepare post object for api route.
      • Dispatch action for saga in onSubmit handler.
  • Verify that everything works as required.

User can see a list of posts.

Motivation

Now that the user can submit a post, the next step would be to give them the ability to see the posts.

Implementation

User can view a list of categories available.

Motivation

An integral part of this web-app will be being able to add public posts under a category for other users to view and discuss via post-comments. Before users can

Implementation

  • Update api express server to serve app docs.
  • Setup client-side directories and dev scripts.
    • Create new directory client, which includes index.js, App.js, App.css.
    • Install react, react-dom as dependencies.
    • Install babel-core, babelify, browserify as dev dependencies.
    • Setup npm script to bundle client as main.js in public/.
    • Install watchify, npm-run-all as dev dependencies.
    • Setup npm script to watch and re-bundle main.js on changes.
    • Install browser-sync as a dev dependency.
    • Setup npm script to reload browser on update.
  • Update App component to render a list of categories from the server.
  • Improve visuals of app.
    • Update App.js to include more elements to improve app.
    • Update App.css to include project-wide css rules.

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.