A React blog example (see demo on CodeSandbox).
Clone and enter the project directory:
git clone https://github.com/remarkablemark/react-blog-example.git
cd react-blog-examplePrerequisites:
Install the project dependencies:
# npm
npm install
# yarn
yarnRun in development mode:
# npm
npm start
# yarn
yarn startOpen http://localhost:3000 to view in browser.
Build app for production to the build directory:
# npm
npm run build
# yarn
yarn buildLint files:
# npm
npm run lint
# yarn
yarn lintLint and fix files:
# npm
npm run lint:fix
# yarn
yarn lint:fixRun tests in watch mode:
# npm
npm test
# yarn
yarn testRun tests once:
# npm
CI=true npm test
# yarn
CI=true yarn test