generator-dojo icon indicating copy to clipboard operation
generator-dojo copied to clipboard

how to consume an app

Open neonstalwart opened this issue 11 years ago • 3 comments

if i use generator-dojo to make an app, then i share that app with someone, what is the minimum to get the app started? (assume they might not even have grunt, bower, yo - just node and npm)

neonstalwart avatar Dec 30 '13 23:12 neonstalwart

if they have python, you can always navigate to either the src or the compiled build directory and run the following line:

python -m SimpleHTTPServer

and it will serve the page and get it running running pretty quickly. It'd also be pretty easy to push this into a simple connect-based node module as well.

PunkChameleon avatar Feb 06 '14 14:02 PunkChameleon

sorry, my issue is not how to serve the code - that part is very simple. my question relates to what steps are necessary to install all the tools (grunt, bower, yo), fulfill all the dependencies, and run a build when starting with a system that just has git and you have a URL of a repo that contains a project built using generator-dojo - i.e. what would it take to deploy an app? the question came when i was trying to write https://github.com/neonstalwart/webapp#getting-started

the answer i'm looking for is something like:

$ npm install -g yo
$ git clone https://server.com/git/project.git
$ cd project
$ npm install
$ grunt server:dist

whatever the steps are, i think this is something worth adding to the docs here because so far the docs cover what it takes to produce code but do not show how to consume that code.

neonstalwart avatar Feb 06 '14 14:02 neonstalwart

Ah okay, makes more sense. I :+1: that documentation in this area would be helpful!

PunkChameleon avatar Feb 06 '14 17:02 PunkChameleon