This is second project from React Developer Nanodegree in Udacity: In Readable project, you will build a content and comment web app. Users will be able to post content to predefined categories, comment on their posts and other users' posts, and vote on posts and comments. Users will also be able to edit and delete posts and comments.
This app was built with react, redux, react-redux-router, redux-thunk, material-ui.
Before being able to run this application, you must have Node Package Manager or Yarn installed on your computer.
This repository has both server and client side code for the application, so you will need to run both of them to make it work.
Some useful tips to help you get started:
-
Clone the repository to your computer( run on terminal )
-
git clone https://github.com/EvanFung/reactnd-project-readable.git
-
#Move to server directory cd server
-
npm install
-
npm start
-
#Move to client directory cd ../client
-
npm install
-
npm start
The project folder structure of client side is as follows:
|-- .gitignore
|-- README.md
|-- client
| |-- .env
| |-- config-overrides.js
| |-- package-lock.json
| |-- package.json
| |-- README.md
| |-- public
| | |-- favicon.ico
| | |-- index.html
| | |-- manifest.json
| |-- src
| |-- index.js
| |-- registerServiceWorker.js
| |-- main
| | |-- App.js
| | |-- actions
| | | |-- category.js
| | | |-- comment.js
| | | |-- post.js
| | |-- components
| | | |-- assets
| | | | |-- LoadingProgress.js
| | | |-- header
| | | | |-- HeaderBar.js
| | | |-- menu
| | | | |-- TabContainer.js
| | | | |-- Tooltips.js
| | | |-- pages
| | | | |-- AllPostsPage.js
| | | | |-- NotFoundPage.js
| | | | |-- PostDetailsPage.js
| | | |-- posts
| | | |-- body
| | | | |-- CommentBox.js
| | | | |-- PostContent.js
| | | |-- button
| | | | |-- CommentButton.js
| | | | |-- UpDownVoter.js
| | | |-- create
| | | | |-- NewComment.js
| | | | |-- NewPost.js
| | | |-- list
| | | |-- PostCardItem.js
| | | |-- PostListContainer.js
| | |-- reducers
| | | |-- category.js
| | | |-- comment.js
| | | |-- index.js
| | | |-- post.js
| | |-- store
| | | |-- configureStore.js
| | |-- styles
| | | |-- assets
| | | | |-- LoadingProgress.js
| | | |-- header
| | | | |-- HeaderBar.js
| | | |-- menu
| | | | |-- TabContainer.js
| | | | |-- Tooltips.js
| | | |-- pages
| | | | |-- MainRouterLayoutPage.js
| | | | |-- NotFoundPage.js
| | | | |-- PostDetailsPage.js
| | | |-- post
| | | |-- PostCardItem.js
| | | |-- PostListContainer.js
| | | |-- body
| | | | |-- CommentBox.js
| | | | |-- PostContent.js
| | | |-- button
| | | | |-- CommentButton.js
| | | | |-- PostSaveCancelButton.js
| | | | |-- UpDownVoter.js
| | | |-- create
| | | |-- NewComment.js
| | | |-- NewPost.js
| | |-- utils
| | |-- ActionHelper.js
| | |-- PostsAPI.js
| | |-- Utils.js
| |-- res
| | |-- images
| | | |-- ok-128.jpg
| | |-- styles
| | |-- App.css
| | |-- index.css
| |-- test
| |-- App.test.js
|-- server
|-- package-lock.json
|-- package.json
|-- README.md
|-- mock-data
| |-- categories.js
| |-- comments.js
| |-- posts.js
|-- public
| |-- help.html
|-- src
|-- categories.js
|-- comments.js
|-- config.js
|-- posts.js
|-- server.js
Make sure your code adheres to our HTML, CSS, JavaScript, and Git style guidelines.
Udacity's JavaScript Style Guide
A project starter server repository contributed by Udacity.
The project is licensed under the MIT license.