Skip to content

wulfgarpro/generator-cesium

Repository files navigation

generator-cesium NPM version Build Status Dependency Status

Cesium + Express webapp generator for Yeoman

Installation

First, install Yeoman and generator-cesium using npm (we assume you have pre-installed node.js):

npm install -g yo
npm install -g generator-cesium

Then generate your new project:

yo cesium
? Type the context path to Cesium viewer (e.g. /cesium): /
? Type the name for your express app: app
? Select a version to install: Basic
? Select a view engine to use: Pug
? Select a css preprocessor to use: None
? Select a build tool to use: Grunt
   create .editorconfig
   create .gitignore
   create app.js
   create bin/www
   create package.json
   create routes/index.js
   create routes/user.js
   create views/error.pug
   create views/index.pug
   create views/layout.pug
   create public/css/style.css
   create Gruntfile.js
? Overwrite app/app.js? (ynaxdH) *y*

Run your new cesium server:

cd app/
npm start

License

MIT © James Fraser