This is a example application for TypeORM + TypeDI + routing-controllers + Angular.
This is a sample web app using TypeORM + TypeDI + routing-controllers + Angular.
*The table structure is inspired by a blog, but in the end it doesn't look like a blog. It's like an admin screen.
vagrant up . ( vagrant provision is automatically started.) * If npm install is failed, please retry vagrant provision .
vagrant up (automatically execute the first build of the app, etc.). *If an error occurs with npm install , try running again with 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.
The web app will automatically start up when the VM starts. The default VM can be accessed using http://[IP allocated with DHCP]/.
*Private IP may not be accessible with Microsoft Edge.
*If automatic startup fails, run the npm start command, as described below.
You can use some commands for the applications. Please use the commands in typeorm-example , typeorm-example-web directories.
The following server commands are prepared for web app operations: If you want to build or restart an app, log in to the VM and run the command in typeorm-example and typeorm-example-web directory.
typeorm-examplenpm start - start the application / Start the applicationnpm run production - start the application as production mode / Start the application (operation mode)npm restart - restart the applicationnpm stop - stop the applicationtypeorm-example/typeorm-example-webnpm run build - build the application /npm run watch - build the application with watch / Build the app (file update watch)npm run doc - generate TypeDoc / API documentation generation for appsnpm test - run unit test / Run unit test for appnpm run lint - run tslint / Run app static analysis toolnpm run clean - clrean all output / Delete all build products The server application output some logs to /var/log/local/typeorm-example . There are an access log, debug log, error log.
Various logs are output under /var/log/local/typeorm-example . Outputs access logs, debug logs, and error logs.
MIT