Access full site online at https://newsexplorer.anderswift.com, API at https://api.newsexplorer.anderswift.com
An API for the backend functionality of the News Explorer project from the Practicum Web Development course. The application is built with Node.js, using Express and MongoDB. This project incorporates:
- Back end routing with Express
- MongoDB data storage using Mongoose models
- JWT authorization tokens generated on user login
- Data validation with Celebrate and Joi
This API provides endpoints for user signup and login, as well as those for fetching, saving and deleting articles and retrieving account information for authorized users (requiring an authorization header with token).
POST /signup
POST /signin
GET /users/me
GET /articles
creates an article with the passed keyword, title, description, publishedAt, source, url, and urlToImage in the body
POST /articles
DELETE /articles/:articleId