https://github.com/rihib/handcrafted-webapp
Web app built from scratch without using a web framework
https://github.com/rihib/handcrafted-webapp
python scratch webapp
Last synced: 8 months ago
JSON representation
Web app built from scratch without using a web framework
- Host: GitHub
- URL: https://github.com/rihib/handcrafted-webapp
- Owner: rihib
- Archived: true
- Created: 2021-11-21T04:00:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T14:00:12.000Z (about 3 years ago)
- Last Synced: 2025-02-15T04:38:52.408Z (over 1 year ago)
- Topics: python, scratch, webapp
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Handcrafted WebApp
## 実行手順
1. ローカルにクローンする
1. 以下のコマンドを実行し、ブラウザで[ローカルホスト](http://localhost:8000/)を開く
```
% cd no_framework_blog
% python3 -m venv .venv
(.venv) % source .venv/bin/activate
(.venv) % python3 -m pip install -r requirements.txt
(.venv) % python3 manage.py
```
## 追記
[【PyCon JP 2018】仕組みから理解するWebアプリケーション Webフレームワークを使わずに原理を学ぶ](https://logmi.jp/tech/articles/314757)をもとに実装した。 \
ただ、[Http通信とSocket通信の違い](https://bny64.github.io/2020/12/13/http-socket-jp/)や[pythonでローカルwebサーバを立ち上げる](https://qiita.com/okhrn/items/4d3c74563154f191ba16)からわかるようにソケット通信だけを使って実装しているだけなのでHTTP通信を使って実装したいところ。 \
また、アカウント周りはセッションの維持などを行えてないので、そこら辺は課題である。 \
[KUMO MTGでの発表スライド](https://docs.google.com/presentation/d/1l8_ZKDM_Wpyon1X0w8RpljXsv-AjGOCh/edit?usp=sharing&ouid=112105813656729520733&rtpof=true&sd=true)