This is a example application for TypeORM + TypeDI + routing-controllers + Angular.
TypeORM + TypeDI + routing-controllers + Angular を使ったWebアプリのサンプルです。
※ テーブル構成などはブログをイメージしていますが、最終的にブログっぽくはないです。管理画面的です。
vagrant up. (vagrant provision is automatically started.)* If npm install is failed, please retry vagrant provision.
vagrant up でVM環境を構築(アプリの初回ビルド等も自動実行)。※ npm install でエラーになる場合は vagrant provision でもう一度実行してみてください。
The server application is automatically started. You can access to the web application at http://[DHCP_IP]/ on default VM.
* If the server application is not started, please run npm start command.
WebアプリはVM起動時に自動的に立ち上がります。 デフォルトのVMでは http://[DHCPで振られたIP]/ でアクセス可能です。
※ Microsoft EdgeだとプライベートIPはアクセスできない場合あり。
※ 自動起動に失敗する場合は、後述の npm start コマンドを実行してください。
You can use some commands for the applications.
Please use the commands in typeorm-example, typeorm-example-web directories.
Webアプリの操作用に、以下のようなサーバーコマンドを用意しています。
アプリのビルドや再起動などを行う場合は、VMにログインして typeorm-example, typeorm-example-web ディレクトリでコマンドを実行してください。
typeorm-example
npm start - start the application / アプリの起動
npm run production - start the application as production mode / アプリの起動(運用モード)npm restart - restart the application / アプリの再起動npm stop - stop the application / アプリの停止typeorm-example/typeorm-example-web
npm run build - build the application / アプリのビルドnpm run watch - build the application with watch / アプリのビルド(ファイル更新監視)npm run doc - generate TypeDoc / アプリのAPIドキュメント生成npm test - run unit test / アプリのユニットテスト実行npm run lint - run tslint / アプリの静的解析ツールの実行npm run clean - clrean all output / 全ビルド生成物の削除The server application output some logs to /var/log/local/typeorm-example.
There are an access log, debug log, error log.
各種ログは /var/log/local/typeorm-example 下に出力されます。
アクセスログ、デバッグログ、エラーログを出力します。
MIT