Skip to content

Commit 989af85

Browse files
committed
add server
1 parent 4fed497 commit 989af85

File tree

12 files changed

+851
-0
lines changed

12 files changed

+851
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
out

.vscode/launch.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Launch Server",
11+
"preLaunchTask": "tsc build",
12+
"program": "${workspaceFolder}/out/server/main.js",
13+
"outFiles": [
14+
"${workspaceFolder}/**/*.js"
15+
]
16+
}
17+
]
18+
}

.vscode/tasks.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label":"tsc build",
8+
"command":[
9+
"${workspaceFolder}/node_modules/.bin/tsc"
10+
],
11+
"type": "shell",
12+
"group": {
13+
"kind": "build",
14+
"isDefault": true
15+
},
16+
"problemMatcher": [
17+
"$tsc"
18+
]
19+
},
20+
]
21+
}

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TODO管理アプリ
2+
3+
## やること
4+
5+
* Type Scriptを使うこと
6+
* サーバ側実装と、クライアント側実装の両方があること
7+
* デバッグできること
8+
9+
## やらないこと
10+
11+
* DB管理

curl.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
curl http://localhost:8080/api/tasks -X GET -H "Content-Type: application/json"
2+
curl http://localhost:8080/api/tasks -X POST -H "Content-Type: application/json" -d '{"key": "value"}'
3+
curl http://localhost:8080/api/tasks -X GET -H "Content-Type: application/json"
4+
curl http://localhost:8080/api/tasks/4/done -X POST -H "Accept: application/json" -H "Content-type: application/json"
5+
curl http://localhost:8080/api/tasks -X GET -H "Content-Type: application/json"
6+
# curl http://localhost:8080/api/ -X GET -H "Content-Type: application/json"

0 commit comments

Comments
 (0)