Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)