Skip to content

vderosa/scenic-demo

 
 

Repository files navigation

Scenic Demo - sample integrations with Subscriptions Project

Scenic Demo is a sample content site that demonstrates integration with Subscribe with Google (SwG).

How to try out the demo

https://scenic-2017.appspot.com

How to run the demo locally

First, install Nodejs, yarn, and gulp.

Then install the Nodejs dependencies with yarn.

yarn

Then start the server with gulp.

gulp

How to update swg.js for local mode

After the server starts to run in localhost, you can select local mode to inspect swg.js served from ./swgjs directory. The way to update ./swgjs is

  • In your swg-js local repo, run gulp build

  • In dist directory, you should be able to see 4 files:

    • subscriptions.js
    • subscriptions.js.map
    • subscriptions.max.js
    • subscriptions.max.js.map
  • Sets $SWG_HOME to be the path to swg-js repo

  • In your scenic-demo local repo, run

    cp $SWG_HOME/dist/subscriptions.js swgjs/swg.js &
    cp $SWG_HOME/dist/subscriptions.js.map swgjs/swg.js.map &
    cp $SWG_HOME/dist/subscriptions.max.js swgjs/swg.max.js &
    cp $SWG_HOME/dist/subscriptions.max.js.map swgjs/swg.max.js.map
    

Then you can create a PR and merge. Now you can visit http://scenic-2017.appspot.com/setup and select local mode. http://scenic-2017.appspot.com will then serve swgjs from ./swgjs directory.

How to deploy the demo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.7%
  • HTML 5.5%
  • CSS 3.8%