mirror of
https://github.com/dmsl/anyplace.git
synced 2021-06-25 09:21:17 +03:00
Anyplace Architect
Installing dependencies
Install Bower dependencies:
bower install
Install Grunt tasks (requires npm):
npm install
Or (for Windows)
npm install -g grunt-cli
Building the app
Development:
grunt
Deployment:
grunt deploy
NOTE: On windows use grunt.cmd
The built files will be in the build folder with the following structure:
.
├── build
│ ├── css
│ │ └── anyplace.min.css # Concatenated and minified CSS
│ ├── images
│ │ └── ... # Optimized images
│ └── js
│ └── anyplace.min.js # Concatenated and minified JS files
├── bower_components
│ └── ... # Bower dependencies
└── index.html
Once the build folder is ready, we need to access the index.html file through the http protocol. An easy way to do that is to start a Python SimpleHTTPServer in the directory were the index.html is located.
python -m SimpleHTTPServer 9000
Then hit http://localhost:9000/ in your browser to launch AnyplaceArchitect.
(The index.html file cannot be simply opened through the file system because the browser will throw security errors.)
The port number is important. For security purposes, AnyplaceServer accepts Cross-Origin requests from localhost only on ports 3030, 8080 and 9000.