Skip to content
This repository was archived by the owner on Sep 4, 2022. It is now read-only.

pyama2000/advent2020

Repository files navigation

advent2020

※ Docker と docker-compose を使用します!

Rust 環境がなくても Docker のみで試せるようにしています。
Rust はコンパイルに時間がかかるので気長にお待ち下さい。

動作確認

docker-compoose up --build

http://localhost:3000 にアクセスすると Nuxt.js で作られたアプリケーションが表示されるので、開発者ツールを見ながら動作の確認を行ってください。
Rust のWebサーバは http://localhost:8000 でリッスンしているので、curl コマンドでも確認可能です。

開発時

Docker + Rust

ローカルに Rust 環境を作った方向けのコマンドです。

docker-compose -f docker-compose.node.yml up --build
cd advent2020_api
cargo run

Docker only

ローカルに Rust 環境を作りたくない人は Docker のみでも開発可能です。 advent2020_api/src/main.rs を編集すると自動的にファイルを読み込んで Docker 上で実行します(ホットリロード)。

docker-compose -f docker-compose.dev.yml up --build

About

ISL Advent Calendar 2020 12月9日用のリポジトリ

Resources

Stars

Watchers

Forks