All local files stores at the path: news-express/repository/storage
. Data stores in JSON format
News-getter requires Node.js v12+ to run.
Install the dependencies and devDependencies and start the server.
$ cd news-getter
$ npm i
$ npm start
For yet here are only unit tests
You can easily run it by command:
$ npm run unit-test
If your API_KEY
for News API is expired, you can use local server with mocked data.
Simply run next command:
$ npm run mock-server
and change value of NEWS_API_KEY
in .env
to http://localhost:7777/uploads/response.json
dotenv
to configure easyexpress
as simple http serveraxios
to request News API easymocha
andchai
for tests