It is a react application that uses expressJs framework to render the application on server initially. It is fully responsive and mobile first. This application is build from scratch without the create-react-app template. User can read any post fetched by the api (that is pointing to https://www.houstonzoo.org but can be changed). It also implements the wordpress-rest-api pagination. User can also filter the posts based on the category.
- Download the code repo.
- In the donwloaded forlder run npm install to install the dependencies.
- Then run npm run dev to run the webpack in watch mode so that you need not build every time you make some changes in the fron end of the app.
- npm run build can be used to build the production app.
- Then run npm run start to start the app at localhots:3000
- You can optionally change the "start" script in package.json to "nodemon ./server-build/index.js" to run the server also in watch mode so that you need not restart the server every time you make some changes in server file.