This is my implementation of the Readable
React Fundamentals Nanodegree project. Based on a Create React App scaffold.
- Install all project dependencies with
yarn
- You need to setup the backend server at localhost:3001
- Start the development server with
yarn start
, a browser window will be open pointing the correct localhost address.
- The project directory is as follows:
-
Actions: All the actions constants and actions creators functions are here.
-
Components: All presentational components order in a Named Directory pattern. These presentational components are exposed via index pattern to other parts of the app, so they can be imported in one line.
-
Pages: The
containers
of the redux state. The containers connect aMain
presentational component to the redux Store. In this app are two:-
List: The Container used for the main page and for the category specific view.
-
Post: The Container used for the post detail page.
-
-
Reducers: The application reducers, separated by responsability.
-
Utils: Some javascript implementations for the Axios library and an API to connect to the backend.
ItemList
component solves me a lot of headaches as I can reuse it to render a generic, sortable list.Routes
I was able to setup a layout for all pages.