Angular Sanity Website

Angular Sanity Website

shopping cart

How to use this template

28.04.2021

This blog explains how to use this template and what can be used for

Setup

Once you downloaded the template and set up all the initial configurations you're almost ready to go.
First install all packages:
npm i
Then install sanity:
cd apps/studio
sanity install
Now you're all set.

Deploy

Usually you deploy the web app to netlify. All the necessary settings are already setup.
If you want to deploy the client to any other provider or your own servers there's a command setup which creates a static site from your configured data
cd /
npm run build
npm run scully
This will create a the following folder in your root folder
You can now work with the output and deploy it where ever you want.

Important information

Please note:
Once you change the content, you need to deploy the web site again, since scully generates static sites.
© 2016-2021 OneCodex GmbH – All rights reserved