The MVC web app called ‘Javascript Books Directory’, consists in two different parts.
- Client (React / Redux )
- Server (Express, NodeJs, MongoDB)
To run locally the app, you need to have installed and running NodeJS and mongoDB.
You can set express server port and mongoDB address in .env file.
cd server
npm install
npm run start
You can set api address at config.js
cd client
npm install
npm run start
For production you can run following command that will generate a dist folder.
npm run build
Due the lack of time I made just unit tests for the reducers.
cd client
npm run test