https://github.com/kento75/deno-http-server-app
Deno を使って HTTP サーバ作成に挑戦 つらいぜ
https://github.com/kento75/deno-http-server-app
deno typescript
Last synced: 5 months ago
JSON representation
Deno を使って HTTP サーバ作成に挑戦 つらいぜ
- Host: GitHub
- URL: https://github.com/kento75/deno-http-server-app
- Owner: Kento75
- Created: 2019-05-01T02:58:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-01T05:37:46.000Z (over 6 years ago)
- Last Synced: 2025-02-11T14:40:43.208Z (11 months ago)
- Topics: deno, typescript
- Language: TypeScript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deno-http-server-app
Deno を使って HTTP サーバ作成に挑戦
### 何をするか
・TCP サーバ立てる
・TCP クライアント立てる
## セットアップ
```
# Denoをインストール
$ curl -fsSL https://deno.land/x/install/install.sh | sh
# Denoを環境変数に設定
$ vi ~/.bash_profile #--> export PATH="~/.deno/bin:$PATH" を追加
$ source ~/.bash_profile
```
```
# サーバー起動コマンド
$ deno deno-server.ts
# クライアント起動コマンド
$ deno deno-client.ts
# 🦜返しするサーバーの起動コマンド
$ deno http-server.ts
# curlでデータ送信
$ curl localhost:8000 --data-raw "deno de http server"
```