A React blog example.
MIT License
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-example
Prerequisites:
Install the project dependencies:
# npm
npm install
# yarn
yarn
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
Lint files:
# npm
npm run lint
# yarn
yarn lint
Lint and fix files:
# npm
npm run lint:fix
# yarn
yarn lint:fix
Run tests in watch mode:
# npm
npm test
# yarn
yarn test
Run tests once:
# npm
CI=true npm test
# yarn
CI=true yarn test