{"id":18595394,"url":"https://github.com/maratdev/express-mesto-gha","last_synced_at":"2026-04-15T05:31:08.781Z","repository":{"id":176909523,"uuid":"658141017","full_name":"maratdev/express-mesto-gha","owner":"maratdev","description":"🗺️ Бэкенд карточек с фото и описанием + авторизация","archived":false,"fork":false,"pushed_at":"2024-04-28T18:28:21.000Z","size":161,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T07:26:15.740Z","etag":null,"topics":["eslint","express","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"https://api.nomoredomains.xyz","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maratdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-24T22:41:50.000Z","updated_at":"2024-04-28T18:28:24.000Z","dependencies_parsed_at":"2025-10-13T20:39:32.719Z","dependency_job_id":"2552ca6b-d737-4bc2-a9a9-a0f3e0782313","html_url":"https://github.com/maratdev/express-mesto-gha","commit_stats":null,"previous_names":["maratdev/express-mesto-gha"],"tags_count":0,"template":false,"template_full_name":"yandex-praktikum/express-mesto-gha","purl":"pkg:github/maratdev/express-mesto-gha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maratdev%2Fexpress-mesto-gha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maratdev%2Fexpress-mesto-gha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maratdev%2Fexpress-mesto-gha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maratdev%2Fexpress-mesto-gha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maratdev","download_url":"https://codeload.github.com/maratdev/express-mesto-gha/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maratdev%2Fexpress-mesto-gha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31828530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","express","mongodb","nodejs"],"created_at":"2024-11-07T01:19:34.617Z","updated_at":"2026-04-15T05:31:08.754Z","avatar_url":"https://github.com/maratdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Проект Mesto бэкенд\n _***Backend часть сервиса, с помощью которого пользователь может делиться фото с другими.***_\n [Live demo](https://voredev.nomoredomains.xyz/)\n\n## Технологии:\n  \u003ca href=\"https://expressjs.com/ru/\" target=\"_blank\" rel=\"noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/badge/-Express-090909?style=for-the-badge\u0026logo=Express\" alt=\"Express\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://nodejs.org/ru\" target=\"_blank\" rel=\"noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/badge/-Node.js-090909?style=for-the-badge\u0026logo=Node.js\" alt=\"Node.js\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.mongodb.com/\" target=\"_blank\" rel=\"noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/badge/-MongoDB-090909?style=for-the-badge\u0026logo=MongoDB\" alt=\"MongoDB\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.postman.com/\" target=\"_blank\" rel=\"noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/badge/-Postman-090909?style=for-the-badge\u0026logo=Postman\" alt=\"Postman\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://eslint.org/\" target=\"_blank\" rel=\"noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/badge/-Eslint-090909?style=for-the-badge\u0026logo=Eslint\u0026logoColor=blue\" alt=\"Eslint\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://jwt.io/\" target=\"_blank\" rel=\"noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/badge/-Jsonwebtokens-090909?style=for-the-badge\u0026logo=json-web-tokens\u0026logoColor=d63aff\" alt=\"jwt\" /\u003e\u003c/a\u003e\n\n### Функционал:\n\n+ Регистрация  `POST: /signup`\n+ Авторизация `POST: /signin`\n+ Обновление данных пользователя `PATCH: /users/me`\n+ Обновление аватара `PATCH: /users/me/avatar`\n+ Получение списка всех пользователей `GET: /users`\n+ Получение пользователя по ID `GET: /users/userID`\n+ Получение информации о текущем пользователе `GET: /users/me`\n+ Получение списка всех карточек `GET: /cards`\n+ Создание карточки `POST: /cards`\n+ Удаление карточки `DELETE: /cards/cardID`\n+ Постановка лайка `PUT: /cards/cardID/likes`\n+ Снятие лайка `DELETE: /cards/cardID/likes`\n+ Центральная обработка ошибок\n+ Валидация входящих данных\n+ Защита API авторизацией\n------\n### О чём проект?\n\n*Данное серверное приложение предназначено для храниния и обмена файлами с вэб-приложением Mesto.*\n\n* Возможность зарегестрироваться и залогиниться с помощью почты и пароля. Токен для авторизации хранится 7 дней.\n* У каждого пользователя есть поля name, about, avatar, email, password. Их можно задать при регистрации. Если не задать name, about или avatar, то установятся дефолтные.\n* Поля name, about, avatar можно обновить после регистрации.\n* Можно создавать карточки. У каждой каточки есть есть поля name, link (ссылка на картинку), owner (id создателя карточки), createdAt (дата создания карточки) и массив likes (лайков карточки, которые могут ставить пользователи).\n* Карточки можно создавать и удалять, а также лайкать.\n* Поля валидируются (например ссылки или email).\n------\n### Директории\n\n`/routes` — папка с файлами роутера  \n`/controllers` — папка с файлами контроллеров пользователя и карточки   \n`/models` — папка с файлами описания схем пользователя и карточки\n\nОстальные директории вспомогательные, создаются при необходимости разработчиком\n\n### Запуск проекта\n\n`npm run start` — запускает сервер   \n`npm run dev` — запускает сервер с hot-reload\n\n\nРепозиторий:\n\n```bash\ngit clone https://github.com/maratdev/express-mesto-gha/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaratdev%2Fexpress-mesto-gha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaratdev%2Fexpress-mesto-gha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaratdev%2Fexpress-mesto-gha/lists"}