1.1.1 • Published 7 years ago
eva-skeleton v1.1.1
EvaSkeleton.js
A Skeleton project based on EvaEngine.js
Start with one line code:
Prepare a empty directory:
mkdir myproject
cd myprojectwget https://github.com/EvaEngine/EvaSkeleton.js/archive/master.tar.gz -O master.tar.gz && tar xvf master.tar.gz --strip 1 && rm master.tar.gzRun by Docker
docker run -p 3000:3000 -it allovince/evaskeleton:latest npm startThen visit http://localhost:3000/
Install and Start develop:
Requirements:
- NodeJS >= v8
1. Install global dependencies
make pre-build2. Install project dependencies
make build3. Start project (development mode)
npm run devVisit http://localhost:3000/ to see HelloWorld web page demo
4. Generate API documents
npm run swagger-devVisit http://localhost:15638/ to see Swagger document demo
5. CLI command (development mode)
babel-node --harmony src/cli.js hello:world6. Run unit test
npm testDeploy to production server
1. Install global dependencies
make pre-build2. Install project dependencies
make build3. Compile & Start project
npm run build
npm start