zeanium-node-demo

0.1.2 • Public • Published

zeanium-node-demo

Introduction

This is the back-end demo for zeanium-node, you can very easy develop and deploy your project using zeanium-node. Every project can be the plugin in workspace, every time if you don't need it, you can delete the plugin folder.

This is very important, you will experience the most important function what is dynamic reload the newly code when the code has changed in development mode and deployment mode. You just need waiting three second, the system will reload changed file.

Get Start

If you has install node and npm, you can do below step.

Begin your development.

Preparation environment

npm install //install dependencies for project
npm install zeanium-node -g

Start zn server

zn run config:zn.workspace.config.js

Show output:

2017-04-30 00:13:37.422 [INFO] [Scanner.js:24:20]  [ Begin ] Scanning Path:/usr/local/lib/node_modules/zeanium-node/src/net/http.server/www/
2017-04-30 00:13:37.432 [INFO] [Scanner.js:64:24]  Loading Applicati
on:/usr/local/lib/node_modules/zeanium-node/src/net/http.server/www/__zn__
2017-04-30 00:13:37.503 [INFO] [HttpServerContext.js:77:20]  Registe
r Project(Application): __zn__
2017-04-30 00:13:37.503 [INFO] [HttpServerContext.js:110:24]  [ End
] Scanning Path(Application:1):/usr/local/lib/node_modules/zeanium-node/src/net/http.server/www/

Access back-end api

Open link http://127.0.0.1:8181/

Every project api list in project path {$project}/apis, such as i want to know what apis for demo, you can open link http://127.0.0.1:8181/demo/apis.

Package Sidebar

Install

npm i zeanium-node-demo

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • yangyxu