Skip to content

このリポジトリはレスポンスヘッダーの設定を確認するためのサンプルです。

Notifications You must be signed in to change notification settings

eycjur/response_header_best_parctice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Response Header Best Parctice

このリポジトリはレスポンスヘッダーの設定を確認するためのサンプルです。

Setup

cd frontend
npm install
cd ..

cd backend
pip install -r requirements.txt
cd ..

# install nginx
# ex. brew install nginx(mac)

Run Server

make start-frontend
make start-backend
make start-nginx

http://localhost:80 からアプリにアクセスできます

なお、nginxを停止する場合は以下のコマンドを実行してください。

make stop-nginx

Best Practice

フロントエンドの設定は、 frontend/nginx.conf を参照してください。
バックエンドの設定は、 backend/main.py を参照してください。