Shape Books — a TakeShape Demo
Every TakeShape account comes pre-loaded with a demo project to help get you started.
git clone https://github.com/takeshape/takeshape-demo [YOUR-PROJECT-NAME]
yarn install- This will install all dependencies
yarn run init- Follow the command prompts to set up your local environment to communicate with TS
yarn run start- The server runs on http://localhost:5000 by default
- Have fun playing around with the sample site! Change some markup a template file and the site will regenerate automatically. Try adding a new field to an existing content type then add it to the corresponding GraphQL query and template.
Deploying your templates
When you are done tinkering and are ready to put your site online follow these steps:
Configure a Static Site in the TakeShape webapp.
- Open your project in TakeShape
- Click on "Static Sites" from the project dropdown menu.
- Click the "NEW STATIC SITE" button.
- Give your site a name such as "Production" or "Staging"
- Select your "Provider" and enter in the appropriate credentials.
Use the CLI to point your local development folder to the static site you just created.
yarn run init- Follow the command prompts
Use the CLI to deploy your templates!
yarn run deploy- Deploy your site to TS!
Once the templates are deployed TakeShape will generate HTML and push your website to the configured provider
- Check your bucket/webserver to see the fruits of your labor
- Additional publishes can be triggered using the "Deploy " in the project menu