Ecommerce JAMstack web app made with a headless CMS backend and Angular frontend. Made with a Sanity ecommerce template (headless CMS) and Snipcart for ecommerce and shopping cart features.
Netlify was used to host the angular frontend and Sanity (Headless CMS UI and Backend) as a proxy between the two. The Netlify file has build and dev commands properties and a JS function that fetches products in the CMS for the Angular frontend.
This project was generated with Angular CLI version 11.0.2.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run sanity start
for content server. Navigate to http://localhost:3333/
. Or you can deploy the Sanity CMS with sanity deploy
. More details here.
Install the netlify CLI to your node modules globally or locally if it isnt installed. Add your netlify.toml file to the your angular project directory.
netlify init
you can initialize a site that has a remote repository in GitHub or create and deploy the site manually.
The first option allows for Netlify Continuous deployment to build branch & PR previews. For more details on Netlify CI checkout the docs: http://bit.ly/2N0Jhy5
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
A web development architecture composed of client-side JavaScript, reusable APIs and prebuilt Markup templates (e.g. static website generators)