Coder Social home page Coder Social logo

chinmaykunkikar / news-aggregator-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 203 KB

A RESTful API that allows users to fetch news articles from multiple sources based on their preferences.

JavaScript 100.00%
airtribe expressjs newsapi nodejs rest-api

news-aggregator-api's Introduction

🙏🏼 नमस्कार

I'm Chinmay, a frontend developer, thriving on the joy of creating delightful web experiences.

news-aggregator-api's People

Contributors

chinmaykunkikar avatar

Stargazers

 avatar

Watchers

 avatar

news-aggregator-api's Issues

Task - Write test cases for the API endpoints

Set up unit testing and write test cases for the API endpoints, focusing on testing input validation and proper functioning of CRUD operations. Make sure to achieve good test coverage and test edge cases.

Task: Show appropriate error messages

Refactor the API code to improve error handling, ensuring that appropriate error messages are returned for different types of errors (e.g., validation errors, authentication errors, authorization errors, and server errors).

Add validations for preference sources.

We can get all sources like this: https://newsapi.org/v2/top-headlines/sources?apiKey=
It will be easy to add a validation to that.

Cache the response for 24hrs

User registration and login functionality

Implement user registration and login functionality using bcrypt for password hashing and JWT for token-based authentication. Use POST /register and POST /login endpoints to handle user registration and login requests.

Add environment flags for various use cases

  1. Add a flag that can turn off the use of redis. If you don't want to install and setup redis, you can use this flag. (Note: Will also have to use in-memory store for rate limiting).
  2. Add a flag to turn off logging.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.