{"id":496167,"date":"2026-09-26T11:44:47","date_gmt":"2026-09-26T11:44:47","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=496167"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=496167","title":{"rendered":"\u041a\u0430\u043a \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 Open-Source \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c \u043d\u0430 React, Node.js \u0438 WebNFC"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5c3\/694\/19e\/5c369419ecf0f58767b67b52715a2ad9.png\" alt=\"\u043f\u0440\u0435\u0432\u044c\u044e\" title=\"\u043f\u0440\u0435\u0432\u044c\u044e\" width=\"1200\" height=\"675\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/5c3\/694\/19e\/5c369419ecf0f58767b67b52715a2ad9.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5c3\/694\/19e\/5c369419ecf0f58767b67b52715a2ad9.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u043f\u0440\u0435\u0432\u044c\u044e<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0430\u0440\u043a \u0430\u0442\u0442\u0440\u0430\u043a\u0446\u0438\u043e\u043d\u043e\u0432, \u0444\u0443\u0434-\u043a\u043e\u0440\u0442 \u043d\u0430 \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u0435, \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0442\u043e\u043b\u043e\u0432\u0443\u044e \u0438\u043b\u0438 \u0441\u0435\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u043e\u0435\u043a. \u0427\u0442\u043e \u0438\u0445 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442? \u0412\u0441\u0435\u043c \u0438\u043c \u043d\u0443\u0436\u043d\u0430 \u0441\u0432\u043e\u044f \u0437\u0430\u043a\u0440\u044b\u0442\u0430\u044f \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043b\u043e\u044f\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (\u043a\u043b\u0443\u0431\u043d\u044b\u0435 \u043a\u0430\u0440\u0442\u044b).<\/p>\n<p>\u041e\u0431\u044b\u0447\u043d\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u2014 \u044d\u0442\u043e \u0431\u043e\u043b\u044c. \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044b, \u043d\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0438 \u043f\u0438\u043b\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0439 \u0441\u043e\u0444\u0442. \u0410 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0443\u0436\u043d\u0430 \u00ab\u043d\u0430 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u00bb (\u0434\u043b\u044f \u0442\u0440\u0451\u0445\u0434\u043d\u0435\u0432\u043d\u043e\u0433\u043e \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u044f) \u0438\u043b\u0438 \u0443 \u043c\u0430\u043b\u043e\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0442 \u0431\u044e\u0434\u0436\u0435\u0442\u0430?<\/p>\n<p>\u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u041d\u0438\u043a\u0438\u0442\u0430, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u044d\u0442\u0443 \u0431\u043e\u043b\u044c, \u0437\u0430\u043e\u0434\u043d\u043e \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0432 \u0441\u0432\u043e\u0451 \u043f\u043e\u0440\u0442\u0444\u043e\u043b\u0438\u043e. \u042f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b <strong>\u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u0443\u044e, open-source \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u043b\u0430\u0442\u0451\u0436\u043a\u0430\u043c<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u0436\u0435\u043b\u0435\u0437\u0430.<\/p>\n<p>\u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0435\u043a <strong>React + Node.js<\/strong> \u0438 \u043a\u0430\u043f\u0435\u043b\u044c\u043a\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0432 \u0432\u0438\u0434\u0435 <strong>WebNFC<\/strong>.<\/p>\n<h2>\ud83d\udee0 \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u0441\u0442\u044b\u043b\u0438 (\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0439 \u0434\u043b\u044f \u044e\u0437\u0435\u0440\u0430)<\/h2>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0432 \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0431\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u0441\u043e\u0444\u0442\u0430. \u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0443\u043f\u043e\u0440 \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u043d \u043d\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e <strong>WebNFC<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 NFC-\u043c\u0435\u0442\u043a\u0438 \u0438 \u043a\u0430\u0440\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u041d\u043e \u0442\u0443\u0442 \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0441 \u0441\u0443\u0440\u043e\u0432\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e: WebNFC \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 <strong>Chrome \u043d\u0430 Android<\/strong>.<\/p>\n<pre><code class=\"javascript\">if (!(\"NDEFReader\" in window)) {      alert(        \"\u041e\u0448\u0438\u0431\u043a\u0430: Web NFC \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Chrome \u043d\u0430 Android \u0438 HTTPS.\",      );      return;    }    ndef.current = new NDEFReader();    ndef.current.onreading = async ({ message, serialNumber }) =&gt; {      if (readingLock.current) return;      setIsReading(true);      readingLock.current = true;      let cardObject = null;      try {        setUid(serialNumber);        for (const record of message.records) {          if (record.recordType !== \"text\") continue;          const decoder = new TextDecoder();          const textData = decoder.decode(record.data);          try {            cardObject = JSON.parse(textData);            setCardData(cardObject);          } catch {            console.log(\"Not JSON\");            return;          }          console.log(            `UID: ${serialNumber} \\n Balance: ${cardObject.balance}  \\n Name: ${cardObject.name}`,          );          addLog(\"read\", serialNumber, cardObject.balance);        }      } catch (e) {        console.log(\"\u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0435\", e);      } finally {        setIsReading(false);        readingLock.current = false;      }    };<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 iOS \u0437\u0430 \u0431\u043e\u0440\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u043d\u0435\u043b\u044c\u0437\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u044b\u0439 \u0444\u043e\u043b\u0431\u0435\u043a:<\/p>\n<ul>\n<li>\n<p><strong>\u0414\u043b\u044f Android:<\/strong> \u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b (\u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\/\u043a\u0430\u0441\u0441\u0438\u0440\u0430) \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0440\u0442\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a \u0447\u0435\u0440\u0435\u0437 WebNFC \u043f\u043e \u0435\u0451 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443 (UID).<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u043b\u044f iOS:<\/strong> \u041d\u0430 \u043a\u0430\u0440\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0441\u044f QR-\u043a\u043e\u0434, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0442\u043e\u0442 \u0436\u0435 UID. \u041a\u0430\u0441\u0441\u0438\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/eae\/a00\/728\/eaea00728de1a328eecab09658ad3132.png\" width=\"3024\" height=\"1714\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/eae\/a00\/728\/eaea00728de1a328eecab09658ad3132.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/eae\/a00\/728\/eaea00728de1a328eecab09658ad3132.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><strong>\u041a\u0430\u043a \u0445\u043e\u0434\u044f\u0442 \u0434\u0430\u043d\u043d\u044b\u0435:<\/strong><\/p>\n<p>\u041d\u0430 \u044d\u0442\u0430\u043f\u0435 MVP \u044f \u043d\u0435 \u0441\u0442\u0430\u043b \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0442\u044f\u0436\u0435\u043b\u044b\u043c\u0438 \u0421\u0423\u0411\u0414, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0445\u0435\u043c\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e:<\/p>\n<p>Frontend (React) \u2014 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 UID \u043a\u0430\u0440\u0442\u044b \u0438 \u0441\u0443\u043c\u043c\u0443 \u2014&gt; Backend (Node.js) \u2014 \u043f\u0430\u0440\u0441\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u2014&gt; JSON DB (\u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f).<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0f8\/a29\/78c\/0f8a2978cd003acd439c115eb4fe3b7d.png\" width=\"2888\" height=\"550\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/0f8\/a29\/78c\/0f8a2978cd003acd439c115eb4fe3b7d.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0f8\/a29\/78c\/0f8a2978cd003acd439c115eb4fe3b7d.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h2>\ud83d\udcbc \u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0444\u0438\u0442 \u0434\u043b\u044f \u0431\u0438\u0437\u043d\u0435\u0441\u0430?<\/h2>\n<p>\u0417\u0430\u0447\u0435\u043c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0443 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u043c\u043e\u0439\u043a\u0438 \u0438\u043b\u0438 \u043a\u043e\u0444\u0435\u0439\u043d\u0438 \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u044d\u043a\u0432\u0430\u0439\u0440\u0438\u043d\u0433\u0430? \u042f \u0432\u044b\u0434\u0435\u043b\u0438\u043b 5 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u043f\u0440\u0438\u0447\u0438\u043d:<\/p>\n<ul>\n<li>\n<p><strong>\u0414\u0435\u043d\u044c\u0433\u0438 \u0441\u0440\u0430\u0437\u0443 \u0432 \u043e\u0431\u043e\u0440\u043e\u0442\u0435.<\/strong> \u041a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0430\u043b\u044e\u0442\u0443 \u0438\u043b\u0438 \u0430\u0431\u043e\u043d\u0435\u043c\u0435\u043d\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435. \u0414\u0435\u043d\u044c\u0433\u0438 \u0443\u0436\u0435 \u0443 \u0432\u0430\u0441 \u0432 \u043a\u0430\u0441\u0441\u0435, \u0430 \u0443\u0441\u043b\u0443\u0433\u0443 \u0432\u044b \u043e\u043a\u0430\u0436\u0435\u0442\u0435 \u043f\u043e\u0442\u043e\u043c. \u042d\u0442\u043e \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u0435\u0440\u043d\u0451\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u043a \u0432\u0430\u043c, \u0430 \u043d\u0435 \u043a \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0430\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u044f \u00ab\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u043d\u0435\u0433\u00bb.<\/strong> \u0422\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0431\u0430\u043b\u043b\u044b \u0438\u043b\u0438 \u0431\u0430\u043b\u0430\u043d\u0441 \u0441 \u043a\u043b\u0443\u0431\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0440\u0443\u0431\u043b\u044f\u043c\u0438 \u043d\u0430 \u0431\u0430\u043b\u0430\u043d\u0441\u0435 \u0431\u0430\u043d\u043a\u0430. \u042d\u0442\u043e \u043a\u0440\u0430\u0442\u043d\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u043d\u0438\u0439 \u0447\u0435\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0449\u0430\u0439, \u0433\u0440\u0430\u0431\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u044d\u043a\u0432\u0430\u0439\u0440\u0438\u043d\u0433.<\/strong> \u041c\u0435\u043d\u044c\u0448\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u0431\u0430\u043d\u043a \u2014 \u043c\u0435\u043d\u044c\u0448\u0435 \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0439 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c. \u0411\u0438\u0437\u043d\u0435\u0441 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0447\u0438\u0445\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb.<\/strong> \u041d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044b \u0437\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0442\u044b\u0441\u044f\u0447 \u0440\u0443\u0431\u043b\u0435\u0439 \u0438 \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u043d\u0430 \u0441\u043e\u0444\u0442. \u041d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043f\u0435\u0435\u0447\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 NFC-\u043a\u0430\u0440\u0442 (\u0438\u043b\u0438 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u043d\u043d\u044b\u0445 QR-\u043a\u043e\u0434\u043e\u0432) \u0438 \u043b\u044e\u0431\u043e\u0439 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c.<\/strong> \u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043b\u043e\u0433 \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 Excel \u0434\u043b\u044f \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0438.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bd4\/003\/ebb\/bd4003ebb470bf8123de619c2d45ded2.png\" width=\"3024\" height=\"1714\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/bd4\/003\/ebb\/bd4003ebb470bf8123de619c2d45ded2.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bd4\/003\/ebb\/bd4003ebb470bf8123de619c2d45ded2.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><\/p>\n<\/li>\n<\/ul>\n<p>\ud83d\ude80<strong> \u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0433\u0434\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434?<\/strong><\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0433\u0438\u0431\u043a\u0430\u044f open-source \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430 \u0438 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0437\u0430\u0434\u0430\u0447\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u0438\u043b\u0438 \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u044f.<\/p>\n<p>\u0412 \u043f\u043b\u0430\u043d\u0430\u0445 \u2014 \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 (MongoDB) \u0432\u043c\u0435\u0441\u0442\u043e JSON-\u0444\u0430\u0439\u043b\u043e\u0432, \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0440\u043e\u043b\u0435\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c (\u0441\u0443\u043f\u0435\u0440\u0430\u0434\u043c\u0438\u043d, \u043a\u0430\u0441\u0441\u0438\u0440, \u043a\u043b\u0438\u0435\u043d\u0442) \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438, \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0435\u0433\u043e \u0443 \u0441\u0435\u0431\u044f, \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u043f\u0443\u043b-\u0440\u0435\u043a\u0432\u0435\u0441\u0442 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0432\u0451\u0437\u0434\u043e\u0447\u043a\u0443 \u043c\u043e\u0435\u043c\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e.<\/p>\n<p>\ud83d\udc49 <strong>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043c\u043e\u0439 GitHub:<\/strong> <a href=\"https:\/\/github.com\/lqdope\/NFCwebPay\/\" rel=\"noopener nofollow\">https:\/\/github.com\/lqdope\/NFCwebPay\/<\/a><\/p>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0444\u0438\u0434\u0431\u0435\u043a\u0443 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445: \u0432\u0437\u043b\u0435\u0442\u0438\u0442 \u043b\u0438 \u0442\u0430\u043a\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 \u00ab\u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435\u00bb \u0434\u043b\u044f \u043c\u0435\u043b\u043a\u043e\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u0438\u043b\u0438 WebNFC \u0432 \u0432\u0435\u0431\u0435 \u2014 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f?<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1086942\/\">https:\/\/habr.com\/ru\/articles\/1086942\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u043f\u0440\u0435\u0432\u044c\u044e\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0430\u0440\u043a \u0430\u0442\u0442\u0440\u0430\u043a\u0446\u0438\u043e\u043d\u043e\u0432, \u0444\u0443\u0434-\u043a\u043e\u0440\u0442 \u043d\u0430 \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u0435, \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0442\u043e\u043b\u043e\u0432\u0443\u044e \u0438\u043b\u0438 \u0441\u0435\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u043e\u0435\u043a. \u0427\u0442\u043e \u0438\u0445 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442? \u0412\u0441\u0435\u043c \u0438\u043c \u043d\u0443\u0436\u043d\u0430 \u0441\u0432\u043e\u044f \u0437\u0430\u043a\u0440\u044b\u0442\u0430\u044f \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043b\u043e\u044f\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (\u043a\u043b\u0443\u0431\u043d\u044b\u0435 \u043a\u0430\u0440\u0442\u044b).\u041e\u0431\u044b\u0447\u043d\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u2014 \u044d\u0442\u043e \u0431\u043e\u043b\u044c. \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044b, \u043d\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0438 \u043f\u0438\u043b\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0439 \u0441\u043e\u0444\u0442. \u0410 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0443\u0436\u043d\u0430 \u00ab\u043d\u0430 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u00bb (\u0434\u043b\u044f \u0442\u0440\u0451\u0445\u0434\u043d\u0435\u0432\u043d\u043e\u0433\u043e \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u044f) \u0438\u043b\u0438 \u0443 \u043c\u0430\u043b\u043e\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0442 \u0431\u044e\u0434\u0436\u0435\u0442\u0430?\u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u041d\u0438\u043a\u0438\u0442\u0430, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u044d\u0442\u0443 \u0431\u043e\u043b\u044c, \u0437\u0430\u043e\u0434\u043d\u043e \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0432 \u0441\u0432\u043e\u0451 \u043f\u043e\u0440\u0442\u0444\u043e\u043b\u0438\u043e. \u042f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u0443\u044e, open-source \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u043b\u0430\u0442\u0451\u0436\u043a\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u0436\u0435\u043b\u0435\u0437\u0430.\u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0435\u043a React + Node.js \u0438 \u043a\u0430\u043f\u0435\u043b\u044c\u043a\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0432 \u0432\u0438\u0434\u0435 WebNFC.\ud83d\udee0 \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u0441\u0442\u044b\u043b\u0438 (\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0439 \u0434\u043b\u044f \u044e\u0437\u0435\u0440\u0430)\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0432 \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0431\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u0441\u043e\u0444\u0442\u0430. \u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0443\u043f\u043e\u0440 \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u043d \u043d\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e WebNFC, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 NFC-\u043c\u0435\u0442\u043a\u0438 \u0438 \u043a\u0430\u0440\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u041d\u043e \u0442\u0443\u0442 \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0441 \u0441\u0443\u0440\u043e\u0432\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e: WebNFC \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 Chrome \u043d\u0430 Android.if (!(&#171;NDEFReader&#187; in window)) {      alert(        &#171;\u041e\u0448\u0438\u0431\u043a\u0430: Web NFC \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Chrome \u043d\u0430 Android \u0438 HTTPS.&#187;,      );      return;    }    ndef.current = new NDEFReader();    ndef.current.onreading = async ({ message, serialNumber }) =&gt; {      if (readingLock.current) return;      setIsReading(true);      readingLock.current = true;      let cardObject = null;      try {        setUid(serialNumber);        for (const record of message.records) {          if (record.recordType !== &#171;text&#187;) continue;          const decoder = new TextDecoder();          const textData = decoder.decode(record.data);          try {            cardObject = JSON.parse(textData);            setCardData(cardObject);          } catch {            console.log(&#171;Not JSON&#187;);            return;          }          console.log(            `UID: ${serialNumber} \\n Balance: ${cardObject.balance}  \\n Name: ${cardObject.name}`,          );          addLog(&#171;read&#187;, serialNumber, cardObject.balance);        }      } catch (e) {        console.log(&#171;\u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0435&#187;, e);      } finally {        setIsReading(false);        readingLock.current = false;      }    };\u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 iOS \u0437\u0430 \u0431\u043e\u0440\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u043d\u0435\u043b\u044c\u0437\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u044b\u0439 \u0444\u043e\u043b\u0431\u0435\u043a:\u0414\u043b\u044f Android: \u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b (\u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\/\u043a\u0430\u0441\u0441\u0438\u0440\u0430) \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0440\u0442\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a \u0447\u0435\u0440\u0435\u0437 WebNFC \u043f\u043e \u0435\u0451 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443 (UID).\u0414\u043b\u044f iOS: \u041d\u0430 \u043a\u0430\u0440\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0441\u044f QR-\u043a\u043e\u0434, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0442\u043e\u0442 \u0436\u0435 UID. \u041a\u0430\u0441\u0441\u0438\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.\u041a\u0430\u043a \u0445\u043e\u0434\u044f\u0442 \u0434\u0430\u043d\u043d\u044b\u0435:\u041d\u0430 \u044d\u0442\u0430\u043f\u0435 MVP \u044f \u043d\u0435 \u0441\u0442\u0430\u043b \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0442\u044f\u0436\u0435\u043b\u044b\u043c\u0438 \u0421\u0423\u0411\u0414, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0445\u0435\u043c\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e:Frontend (React) \u2014 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 UID \u043a\u0430\u0440\u0442\u044b \u0438 \u0441\u0443\u043c\u043c\u0443 \u2014&gt; Backend (Node.js) \u2014 \u043f\u0430\u0440\u0441\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u2014&gt; JSON DB (\u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f).\ud83d\udcbc \u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0444\u0438\u0442 \u0434\u043b\u044f \u0431\u0438\u0437\u043d\u0435\u0441\u0430?\u0417\u0430\u0447\u0435\u043c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0443 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u043c\u043e\u0439\u043a\u0438 \u0438\u043b\u0438 \u043a\u043e\u0444\u0435\u0439\u043d\u0438 \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u044d\u043a\u0432\u0430\u0439\u0440\u0438\u043d\u0433\u0430? \u042f \u0432\u044b\u0434\u0435\u043b\u0438\u043b 5 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u043f\u0440\u0438\u0447\u0438\u043d:\u0414\u0435\u043d\u044c\u0433\u0438 \u0441\u0440\u0430\u0437\u0443 \u0432 \u043e\u0431\u043e\u0440\u043e\u0442\u0435. \u041a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0430\u043b\u044e\u0442\u0443 \u0438\u043b\u0438 \u0430\u0431\u043e\u043d\u0435\u043c\u0435\u043d\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435. \u0414\u0435\u043d\u044c\u0433\u0438 \u0443\u0436\u0435 \u0443 \u0432\u0430\u0441 \u0432 \u043a\u0430\u0441\u0441\u0435, \u0430 \u0443\u0441\u043b\u0443\u0433\u0443 \u0432\u044b \u043e\u043a\u0430\u0436\u0435\u0442\u0435 \u043f\u043e\u0442\u043e\u043c. \u042d\u0442\u043e \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u0435\u0440\u043d\u0451\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u043a \u0432\u0430\u043c, \u0430 \u043d\u0435 \u043a \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0430\u043c.\u041f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u044f \u00ab\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u043d\u0435\u0433\u00bb. \u0422\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0431\u0430\u043b\u043b\u044b \u0438\u043b\u0438 \u0431\u0430\u043b\u0430\u043d\u0441 \u0441 \u043a\u043b\u0443\u0431\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0440\u0443\u0431\u043b\u044f\u043c\u0438 \u043d\u0430 \u0431\u0430\u043b\u0430\u043d\u0441\u0435 \u0431\u0430\u043d\u043a\u0430. \u042d\u0442\u043e \u043a\u0440\u0430\u0442\u043d\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u043d\u0438\u0439 \u0447\u0435\u043a.\u041f\u0440\u043e\u0449\u0430\u0439, \u0433\u0440\u0430\u0431\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u044d\u043a\u0432\u0430\u0439\u0440\u0438\u043d\u0433. \u041c\u0435\u043d\u044c\u0448\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u0431\u0430\u043d\u043a \u2014 \u043c\u0435\u043d\u044c\u0448\u0435 \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0439 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c. \u0411\u0438\u0437\u043d\u0435\u0441 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0447\u0438\u0445\u0435.\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb. \u041d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044b \u0437\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0442\u044b\u0441\u044f\u0447 \u0440\u0443\u0431\u043b\u0435\u0439 \u0438 \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u043d\u0430 \u0441\u043e\u0444\u0442. \u041d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043f\u0435\u0435\u0447\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 NFC-\u043a\u0430\u0440\u0442 (\u0438\u043b\u0438 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u043d\u043d\u044b\u0445 QR-\u043a\u043e\u0434\u043e\u0432) \u0438 \u043b\u044e\u0431\u043e\u0439 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d.\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c. \u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043b\u043e\u0433 \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 Excel \u0434\u043b\u044f \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0438.\ud83d\ude80 \u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0433\u0434\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434?\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0433\u0438\u0431\u043a\u0430\u044f open-source \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430 \u0438 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0437\u0430\u0434\u0430\u0447\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u0438\u043b\u0438 \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u044f.\u0412 \u043f\u043b\u0430\u043d\u0430\u0445 \u2014 \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 (MongoDB) \u0432\u043c\u0435\u0441\u0442\u043e JSON-\u0444\u0430\u0439\u043b\u043e\u0432, \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0440\u043e\u043b\u0435\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c (\u0441\u0443\u043f\u0435\u0440\u0430\u0434\u043c\u0438\u043d, \u043a\u0430\u0441\u0441\u0438\u0440, \u043a\u043b\u0438\u0435\u043d\u0442) \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438, \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0435\u0433\u043e \u0443 \u0441\u0435\u0431\u044f, \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u043f\u0443\u043b-\u0440\u0435\u043a\u0432\u0435\u0441\u0442 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0432\u0451\u0437\u0434\u043e\u0447\u043a\u0443 \u043c\u043e\u0435\u043c\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e.\ud83d\udc49 \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043c\u043e\u0439 GitHub: https:\/\/github.com\/lqdope\/NFCwebPay\/\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0444\u0438\u0434\u0431\u0435\u043a\u0443 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445: \u0432\u0437\u043b\u0435\u0442\u0438\u0442 \u043b\u0438 \u0442\u0430\u043a\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 \u00ab\u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435\u00bb \u0434\u043b\u044f \u043c\u0435\u043b\u043a\u043e\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u0438\u043b\u0438 WebNFC \u0432 \u0432\u0435\u0431\u0435 \u2014 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f?\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1086942\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-496167","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/496167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=496167"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/496167\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=496167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=496167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=496167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}