Coder Social home page Coder Social logo

news-explorer-api's Introduction

news-explorer-api

Репозиторий для полноценного API проекта News-Explorer, включающий авторизацию и регистрацию пользователей, поиск и сохранение новостей.

Функциональность сайта:

  • регистрация,
  • авторизация,
  • сохранение статьи,
  • удаление статьи,
  • получение всех статей пользователя.

Технологии:

  • JavaScript,
  • Express,
  • MongoBD,
  • Node.js,
  • Joi-Celebrate ,
  • Winston.

Ссылка на API:

Публичный IP-адрес сервера: 130.193.37.144

В API реализованы рoуты:

POST /signup

создаёт пользователя с переданными в теле email, password и name

POST /signin

проверяет переданные в теле почту и пароль и возвращает JWT

GET /users/me

возвращает информацию о пользователе (email и имя)

GET /articles

возвращает все сохранённые пользователем статьи

POST /articles

создаёт статью с переданными в теле keyword, title, text, date, source, link и image

DELETE /articles/articleId

удаляет сохранённую статью по _id

Запуск проекта

  • Для установки, запускаем клонирование репозитория:

git clone https://github.com/oalbukova/news-explorer-api.git

  • Установка зависимостей:

npm install

npm run start
npm run dev

Публичный IP-адрес

Домен

news-explorer-api's People

Contributors

oalbukova avatar

Watchers

 avatar

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.