Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remarkablemark/react-blog-example
A React blog example.
https://github.com/remarkablemark/react-blog-example
blog create-react-app eslint faker jest material-ui react react-router-dom redux
Last synced: 3 months ago
JSON representation
A React blog example.
- Host: GitHub
- URL: https://github.com/remarkablemark/react-blog-example
- Owner: remarkablemark
- License: mit
- Created: 2017-10-05T05:45:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T10:00:02.000Z (over 4 years ago)
- Last Synced: 2024-10-10T15:13:20.761Z (4 months ago)
- Topics: blog, create-react-app, eslint, faker, jest, material-ui, react, react-router-dom, redux
- Language: JavaScript
- Homepage: https://codesandbox.io/s/x218ro09vq
- Size: 214 KB
- Stars: 21
- Watchers: 4
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-blog-example
A React blog example (see [demo on CodeSandbox](https://codesandbox.io/s/x218ro09vq)).
## Installation
Clone and enter the project directory:
```sh
git clone https://github.com/remarkablemark/react-blog-example.git
cd react-blog-example
```Prerequisites:
- [Node.js](https://nodejs.org/en/download/)
- [npm](https://www.npmjs.com/get-npm) or [yarn](https://nodejs.org/en://yarnpkg.com/en/docs/install)Install the project dependencies:
```sh
# npm
npm install# yarn
yarn
```## Run Scripts
Run in development mode:
```sh
# npm
npm start# yarn
yarn start
```Open [http://localhost:3000](http://localhost:3000) to view in browser.
Build app for production to the `build` directory:
```sh
# npm
npm run build# yarn
yarn build
```### Linting
Lint files:
```sh
# npm
npm run lint# yarn
yarn lint
```Lint and fix files:
```sh
# npm
npm run lint:fix# yarn
yarn lint:fix
```### Testing
Run tests in watch mode:
```sh
# npm
npm test# yarn
yarn test
```Run tests once:
```sh
# npm
CI=true npm test# yarn
CI=true yarn test
```## License
[MIT](LICENSE)