A React + Redux SPA that allows you to post content & comments, vote on them, edit and delete them.
An app that allows you to post content & comments, vote on them, edit and delete them.
To run this app, you need to have two servers running at the the same time.
First, download the repo and unzip it.
To run the back-end API server:
Open a terminal, cd
into the root directory of this project and run the following command
cd back-end && npm install && node server
To run the React development server:
Open a new terminal (without closing the previous one), cd
into the root directory of this project and run the following command
cd front-end && npm install && npm start
There are four main views in this app.
/
/:category
/:category/:id
/new/post
(or) /edit/post/:id
/
viewThe home view displays
/:category
viewThe category view is identical to the home view, but filtered to only include posts with the selected category.
/:category/:id
viewThe post view displays
/new/post
or /edit/post/:id
viewBoth the new
view and the edit
view displays a form to create a new post or to edit an existing post.
In the edit view, existing data for the post to be edited are pre-populated in the form.
This project is a part of the React Nanodegree syllabus.