react-blog-example
react-blog-example copied to clipboard
A React blog example.
react-blog-example
A React blog example (see demo on CodeSandbox).
Installation
Clone and enter the project directory:
git clone https://github.com/remarkablemark/react-blog-example.git
cd react-blog-example
Prerequisites:
Install the project dependencies:
# npm
npm install
# yarn
yarn
Run Scripts
Run in development mode:
# npm
npm start
# yarn
yarn start
Open http://localhost:3000 to view in browser.
Build app for production to the build directory:
# npm
npm run build
# yarn
yarn build
Linting
Lint files:
# npm
npm run lint
# yarn
yarn lint
Lint and fix files:
# npm
npm run lint:fix
# yarn
yarn lint:fix
Testing
Run tests in watch mode:
# npm
npm test
# yarn
yarn test
Run tests once:
# npm
CI=true npm test
# yarn
CI=true yarn test
License
MIT