Boilerplate code for a simple WebApp
- A SiteVision website
- A valid certificate
- The REST-API activated on the site
To create a new project based on this boilerplate you may use degit to create a copy without git history
degit https://github.com/sitevision/webapp-boilerplate.git webapp-boilerplateOR if you are interested in the git history you should clone the repository
git clone https://github.com/sitevision/webapp-boilerplate.gitcd webapp-boilerplatenpm installnpm run setupmake sure that domain and site name conforms to the site where the WebApp is going to be used
npm run create-addoncreate an addon with the name configured in the setup tasknpm run zipcompress/srcinto/distnpm run deploycompress/srcinto/distand upload to the addon configured in the setup tasknpm run force-deploycompress/srcinto/distand upload to the addon configured in the setup task. This will overwrite the current WebApp if it has the same version and id defined in manifest.jsonnpm run signcompress/srcinto/distand invoke the signing endpoint of the SiteVision developer REST API. A signed version of the WebApp will be created in the/distfoldernpm run prod-deploydeploy the signed WebApp to a production environment