├── .all-contributorsrc ├── .github ├── ISSUE_TEMPLATE │ ├── bug.yml │ ├── chore.yml │ ├── config.yml │ ├── documentation.yml │ ├── feature_request.yml │ └── other.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── codeql-analysis.yml │ ├── first-interaction.yml │ └── node-ci.yml ├── .gitignore ├── .npmrc ├── .prettierrc.json ├── API_DOCS.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.md ├── Procfile ├── README.md ├── __mocks__ ├── articles.js ├── axios.js ├── falsyValues.js └── mockarticles.js ├── __tests__ ├── integration-tests │ └── routes │ │ └── news.test.js └── unit-tests │ ├── existingRegionMiddleware.test.js │ ├── existingSouceMiddleware.test.js │ ├── filterKeyword.test.js │ ├── getTitle.test.js │ ├── paginate.test.js │ └── truncate.test.js ├── _site └── test.txt ├── jest.config.js ├── package.json ├── public ├── css │ ├── not-found.css │ └── styles.css └── img │ ├── energy-prices-api-socials.png │ └── logo.png └── src ├── app.js ├── controller ├── api │ ├── newsAPIController.js │ └── twitterAPIController.js └── mainController.js ├── data ├── accounts.json ├── keywords.js ├── problematic-sources.json ├── regions.json └── sources.json ├── middlewares ├── existingRegionMiddleware.js └── existingSourceMiddleware.js ├── routes ├── api │ ├── news.js │ └── twitter.js └── main.js ├── server.js ├── utils ├── filterKeyword.js ├── getArticles.js ├── getDataFromCheerio.js ├── getImage.js ├── getSourceImageFromCheerio.js ├── getTitle.js ├── paginate.js └── truncate.js └── views ├── index.html └── not-found.html /.all-contributorsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.all-contributorsrc -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/ISSUE_TEMPLATE/bug.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/chore.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/ISSUE_TEMPLATE/chore.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/documentation.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/ISSUE_TEMPLATE/documentation.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/ISSUE_TEMPLATE/feature_request.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/other.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/ISSUE_TEMPLATE/other.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/first-interaction.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/workflows/first-interaction.yml -------------------------------------------------------------------------------- /.github/workflows/node-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.github/workflows/node-ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict = true -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /API_DOCS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/API_DOCS.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/LICENSE.md -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: npm start -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/README.md -------------------------------------------------------------------------------- /__mocks__/articles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__mocks__/articles.js -------------------------------------------------------------------------------- /__mocks__/axios.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__mocks__/axios.js -------------------------------------------------------------------------------- /__mocks__/falsyValues.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__mocks__/falsyValues.js -------------------------------------------------------------------------------- /__mocks__/mockarticles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__mocks__/mockarticles.js -------------------------------------------------------------------------------- /__tests__/integration-tests/routes/news.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__tests__/integration-tests/routes/news.test.js -------------------------------------------------------------------------------- /__tests__/unit-tests/existingRegionMiddleware.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__tests__/unit-tests/existingRegionMiddleware.test.js -------------------------------------------------------------------------------- /__tests__/unit-tests/existingSouceMiddleware.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__tests__/unit-tests/existingSouceMiddleware.test.js -------------------------------------------------------------------------------- /__tests__/unit-tests/filterKeyword.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__tests__/unit-tests/filterKeyword.test.js -------------------------------------------------------------------------------- /__tests__/unit-tests/getTitle.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__tests__/unit-tests/getTitle.test.js -------------------------------------------------------------------------------- /__tests__/unit-tests/paginate.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__tests__/unit-tests/paginate.test.js -------------------------------------------------------------------------------- /__tests__/unit-tests/truncate.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/__tests__/unit-tests/truncate.test.js -------------------------------------------------------------------------------- /_site/test.txt: -------------------------------------------------------------------------------- 1 | Testing to see if actions work now! 2 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/package.json -------------------------------------------------------------------------------- /public/css/not-found.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/public/css/not-found.css -------------------------------------------------------------------------------- /public/css/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/public/css/styles.css -------------------------------------------------------------------------------- /public/img/energy-prices-api-socials.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/public/img/energy-prices-api-socials.png -------------------------------------------------------------------------------- /public/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/public/img/logo.png -------------------------------------------------------------------------------- /src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/app.js -------------------------------------------------------------------------------- /src/controller/api/newsAPIController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/controller/api/newsAPIController.js -------------------------------------------------------------------------------- /src/controller/api/twitterAPIController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/controller/api/twitterAPIController.js -------------------------------------------------------------------------------- /src/controller/mainController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/controller/mainController.js -------------------------------------------------------------------------------- /src/data/accounts.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/data/accounts.json -------------------------------------------------------------------------------- /src/data/keywords.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/data/keywords.js -------------------------------------------------------------------------------- /src/data/problematic-sources.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/data/problematic-sources.json -------------------------------------------------------------------------------- /src/data/regions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/data/regions.json -------------------------------------------------------------------------------- /src/data/sources.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/data/sources.json -------------------------------------------------------------------------------- /src/middlewares/existingRegionMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/middlewares/existingRegionMiddleware.js -------------------------------------------------------------------------------- /src/middlewares/existingSourceMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/middlewares/existingSourceMiddleware.js -------------------------------------------------------------------------------- /src/routes/api/news.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/routes/api/news.js -------------------------------------------------------------------------------- /src/routes/api/twitter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/routes/api/twitter.js -------------------------------------------------------------------------------- /src/routes/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/routes/main.js -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/server.js -------------------------------------------------------------------------------- /src/utils/filterKeyword.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/utils/filterKeyword.js -------------------------------------------------------------------------------- /src/utils/getArticles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/utils/getArticles.js -------------------------------------------------------------------------------- /src/utils/getDataFromCheerio.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/utils/getDataFromCheerio.js -------------------------------------------------------------------------------- /src/utils/getImage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/utils/getImage.js -------------------------------------------------------------------------------- /src/utils/getSourceImageFromCheerio.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/utils/getSourceImageFromCheerio.js -------------------------------------------------------------------------------- /src/utils/getTitle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/utils/getTitle.js -------------------------------------------------------------------------------- /src/utils/paginate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/utils/paginate.js -------------------------------------------------------------------------------- /src/utils/truncate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/utils/truncate.js -------------------------------------------------------------------------------- /src/views/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/views/index.html -------------------------------------------------------------------------------- /src/views/not-found.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Energy-Price-News-API/energy-prices-api/HEAD/src/views/not-found.html --------------------------------------------------------------------------------