Simple React Blog created for testing CSS Modules with BEM Methodology and setuping React from scratch with custom webpack config. Project includes basic functionalities which can be expected from blog sites like fetching articles with comments, adding comments, liking articles etc.
Used versions of node:
- npm v6.14.4
- node v10.19.0
Project is created with:
- React v17.0.2
- Redux v4.1.0
- React-Redux v7.2.4
You can check live demo at: https://react-articles.netlify.app/
or run this project, install it locally using npm:
Firstly, copy this repository
$ git clone https://github.com/OskarJankowiak/react-blog.git
then provide followings commands to your terminal
$ cd ../react-blog
$ npm install
$ npm start
Now you should be able to see development mode project in your browser on http://localhost:5000.
If you want to build production ready optimalized version of this app, on the root folder use commands puted below
$ npm build
Now app should be prepared in build
folder, ready and optimalized to deploy!
Project includes simple tests for couple components. All tests were prepared with using Jest and React Testing Library. To run all prepared tests provide in your terminal command puted below:
$ npm run test
After that you should be able to see all tests logs in your terminal, green ones I hope so 😁.