Skip to content

shunichfukui/calender-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

カレンダーの環境構築

セットアップ

docker をインストールしたのちに、

$ make

これでもろもろインストールやビルドが終わります。makeコマンドがない場合は、

$ npm --prefix ./front install ./front
$ npm --cwd ./front run build
$ npm --prefix ./server install ./server
$ cp ./server/env/env-local ./server/.env

の 4 つのコマンドを実行してください。

サーバーの起動と停止

$ docker-compose up -d

を実行するとlocalhost:8080にサーバーが立ち上がります。最初はいろいろインストールするので時間がかかると思います。

サーバーを止めたいときは、

$ docker-compose down

と実行すれば ok です。

API ドキュメントはこちら

フロントの開発をするとき

フロントはwebpackでビルドしてやる必要があります。

$ cd front
$ npm run watch

とすると、ファイルの変更を検知して自動で差分のビルドが走るようになります。自動でビルドされたものはすぐに docker 内の nginx が配信してくれるので、変更のたびに何かコマンドを打つ必要はありません。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 73.4%
  • JavaScript 17.7%
  • HTML 5.8%
  • Makefile 2.4%
  • Dockerfile 0.7%