Node.jsがゼロからウェブserverブログを開発するプロジェクト[プロジェクト紹介]
web serverブログプロジェクト Node.jsがゼロからウェブserverブログプロジェクトを開発します。 Node.jsがゼロからウェブserverブログプロジェクトを開発しました。 Node.jsはゼロからウェブserverブログプロジェクトを開発します。 Node.jsがゼロからウェブserverブログプロジェクトを開発しました。 Node.jsがゼロからウェブserverブログプロジェクトを開発しました。 Node.jsがゼロからウェブserverブログプロジェクトを開発しました。 Node.jsがゼロからウェブserverブログプロジェクトを開発しました。 Node.jsがゼロからウェブserverブログプロジェクトを開発しました。 Node.jsがゼロからウェブserverブログプロジェクトを開発します。
記事の目次 プロジェクトの需要 技術案 データストア ブログ ユーザ インターフェース設計 開発インターフェース(フレームなし) nodejs処理http要求 開発環境を構築する 開発インターフェース(データベースに接続しないで、登録をしばらく考えないでください) postman jsonファイル プロジェクトの需要トップページ、著者ホームページ、ブログの詳細ページ ログインページ 管理センター、新規ページ、編集ページ 技術案
データストアブログ id
title
constent
createtime
author
1
タイトル1
内容1
1545445
張三
2
タイトル2
内容2
15451 12515
李四ユーザ id
username
password
realname
1
zhangさん
1234
張三
2
lisi
0000
李四
インターフェースデザイン
説明
インターフェース
方法
urlパラメータ
コメント
ブログのリストを取得
//api/blog/list
get
author作者、keyword検索キーワード
パラメータが空の場合、クエリーフィルタは行いません。
ブログの内容を取得します。
//api/blog/detail
get
id
ブログを追加します
//api/blog/new
ベスト
ポストに追加情報があります。
ブログを更新します
//api/blog/udate
ベスト
id
postDataに更新された内容があります。
ブログを削除します
//api/blog/del
ベスト
id
ログイン
//api/user/login
ベスト
postDataにはユーザー名とパスワードがあります。
開発インターフェース(フレームは不要) nodejs処理http要求 開発環境を構築する 開発インターフェース(データベースに接続しないで、登録をしばらく考えないでください) postman jsonファイル
記事の目次
データストア
title
constent
createtime
author
1
タイトル1
内容1
1545445
張三
2
タイトル2
内容2
15451 12515
李四
username
password
realname
1
zhangさん
1234
張三
2
lisi
0000
李四
インターフェースデザイン
説明
インターフェース
方法
urlパラメータ
コメント
ブログのリストを取得
//api/blog/list
get
author作者、keyword検索キーワード
パラメータが空の場合、クエリーフィルタは行いません。
ブログの内容を取得します。
//api/blog/detail
get
id
ブログを追加します
//api/blog/new
ベスト
ポストに追加情報があります。
ブログを更新します
//api/blog/udate
ベスト
id
postDataに更新された内容があります。
ブログを削除します
//api/blog/del
ベスト
id
ログイン
//api/user/login
ベスト
postDataにはユーザー名とパスワードがあります。
開発インターフェース(フレームは不要)
{
"id": "9b059257-accf-6ced-b372-c8b2c1a593bf",
"name": "Node.js web server ",
"description": "",
"order": [
"53fadbd2-4bf8-d99c-c4bc-2bad9a9acc4a",
"e9955442-b3a0-270c-5e01-a5a6a3c91e60",
"b13f5e19-ab33-3c9f-63cd-5366015761d6",
"34d0396f-00a4-1691-23ad-ae1de6136fda",
"f24bb99d-dd8c-c181-5d44-9227d7066902",
"e52e4d10-bc5a-685d-77db-bf13871848f6"
],
"folders": [],
"folders_order": [],
"timestamp": 1562430570180,
"owner": "7741397",
"public": false,
"requests": [
{
"id": "34d0396f-00a4-1691-23ad-ae1de6136fda",
"headers": "Content-Type: application/json
",
"headerData": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"enabled": true
}
],
"url": "localhost:9527/api/blog/update?id=7",
"queryParams": [
{
"key": "id",
"value": "7",
"equals": true,
"description": "",
"enabled": true
}
],
"preRequestScript": null,
"pathVariables": {},
"pathVariableData": [],
"method": "POST",
"data": [],
"dataMode": "raw",
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1562438278080,
"name": " ",
"description": "",
"collectionId": "9b059257-accf-6ced-b372-c8b2c1a593bf",
"responses": [],
"rawModeData": "{
\t\"title\": \" c\",
\t\"content\": \" c\"
}"
},
{
"id": "53fadbd2-4bf8-d99c-c4bc-2bad9a9acc4a",
"headers": "",
"headerData": [],
"url": "localhost:9527/api/blog/list?keyword=2",
"queryParams": [
{
"key": "keyword",
"value": "2",
"equals": true,
"description": "",
"enabled": true
}
],
"preRequestScript": null,
"pathVariables": {},
"pathVariableData": [],
"method": "GET",
"data": null,
"dataMode": "params",
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1562435228053,
"name": " ",
"description": "",
"collectionId": "9b059257-accf-6ced-b372-c8b2c1a593bf",
"responses": []
},
{
"id": "b13f5e19-ab33-3c9f-63cd-5366015761d6",
"headers": "Content-Type: application/json
",
"headerData": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"enabled": true
}
],
"url": "localhost:9527/api/blog/new",
"queryParams": [],
"preRequestScript": null,
"pathVariables": {},
"pathVariableData": [],
"method": "POST",
"data": [],
"dataMode": "raw",
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1562438281853,
"name": " ",
"description": "",
"collectionId": "9b059257-accf-6ced-b372-c8b2c1a593bf",
"responses": [],
"rawModeData": "{
\t\"title\": \" B\",
\t\"content\": \" B\"
}"
},
{
"id": "e52e4d10-bc5a-685d-77db-bf13871848f6",
"headers": "Content-Type: application/json
",
"headerData": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"enabled": true
}
],
"url": "localhost:9527/api/user/login",
"queryParams": [],
"pathVariables": {},
"pathVariableData": [],
"preRequestScript": null,
"method": "POST",
"collectionId": "9b059257-accf-6ced-b372-c8b2c1a593bf",
"data": [],
"dataMode": "raw",
"name": " ",
"description": "",
"descriptionFormat": "html",
"time": 1562439940328,
"version": 2,
"responses": [],
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"rawModeData": "{
\t\"username\": \"zhangsan\",
\t\"password\": 123
}"
},
{
"id": "e9955442-b3a0-270c-5e01-a5a6a3c91e60",
"headers": "",
"headerData": [],
"url": "http://localhost:9527/api/blog/detail?id=2",
"queryParams": [
{
"key": "id",
"value": "2",
"equals": true,
"description": "",
"enabled": true
}
],
"pathVariables": {},
"pathVariableData": [],
"preRequestScript": null,
"method": "GET",
"collectionId": "9b059257-accf-6ced-b372-c8b2c1a593bf",
"data": null,
"dataMode": "params",
"name": " ",
"description": "",
"descriptionFormat": "html",
"time": 1562435340139,
"version": 2,
"responses": [],
"tests": null,
"currentHelper": "normal",
"helperAttributes": {}
},
{
"id": "f24bb99d-dd8c-c181-5d44-9227d7066902",
"headers": "Content-Type: application/json
",
"headerData": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"enabled": true
}
],
"url": "localhost:9527/api/blog/del?id=7",
"queryParams": [
{
"key": "id",
"value": "7",
"equals": true,
"description": "",
"enabled": true
}
],
"pathVariables": {},
"pathVariableData": [],
"preRequestScript": null,
"method": "POST",
"collectionId": "9b059257-accf-6ced-b372-c8b2c1a593bf",
"data": [],
"dataMode": "raw",
"name": " ",
"description": "",
"descriptionFormat": "html",
"time": 1562439876334,
"version": 2,
"responses": [],
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"rawModeData": "{
\t\"author\": \"zhangsan\"
}"
}
]
}