Headline App uses News API to list latest news from 70 sources.
You need to get an API key from News API and save it into the .env
file. You can find the example from .env.example
.
Make sure you have Node.js installed.
git clone https://github.com/JonathanGuo/headline-app.git
- Run
npm install
oryarn install
- Start the dev server using
npm start
- Open http://localhost:8080
npm start
- start the dev servernpm clean
- delete the dist foldernpm run production
- create a production ready build indist
foldernpm run lint
- execute an eslint checknpm test
- run all testsnpm run test:watch
- run all tests in watch modenpm run coverage
- generate code coverage report in thecoverage
folder
The project is using the Jest Code Coverage tool. The reports are generated by running npm run coverage
. All configurations are located in package.json
, inside the jest
object.
The coverage report consists of an HTML reporter, which can be viewed in the browser and some helper coverage files like the coverage json and xml file.
Run npm run production
. The production-ready code will be located under dist
folder.
This project is based on KleoPetroff/react-webpack-boilerplate which is an awesome boilerplate for most apps to get start with
Headline App is available under MIT.