https://github.com/flotiq/scully-products-starter
E-commerce starter for Flotiq with Angular and Scully
https://github.com/flotiq/scully-products-starter
angular flotiq scully snipcart
Last synced: about 1 year ago
JSON representation
E-commerce starter for Flotiq with Angular and Scully
- Host: GitHub
- URL: https://github.com/flotiq/scully-products-starter
- Owner: flotiq
- License: mit
- Created: 2020-08-13T08:33:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T09:08:11.000Z (over 1 year ago)
- Last Synced: 2025-03-20T13:41:54.762Z (about 1 year ago)
- Topics: angular, flotiq, scully, snipcart
- Language: TypeScript
- Homepage: https://competent-visvesvaraya-bb732c.netlify.app/
- Size: 4.72 MB
- Stars: 11
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!IMPORTANT]
We are not actively maintaining this repository due to low interest from our users. PRs are welcome.
Scully Starter - Products
========================
This is a [Scully](https://scully.io/) starter project for a shop. It's configured to pull products data from [Flotiq](https://flotiq.com) and can be easily deployed to your cloud hosting - Heroku, Netlify, etc.
Live Demo: https://competent-visvesvaraya-bb732c.netlify.app/
Screenshot

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.7.
## Quick start
1. **Clone project**
```bash
git clone https://github.com/flotiq/scully-products-starter
```
1. **Setup "Product" Content Type in Flotiq**
Create your [Flotiq.com](https://flotiq.com) account. Next, create the `Product` Content Type:

_Note: You can also create `Product` using [Flotiq REST API](https://flotiq.com/docs/API/)._
1. **Configure application**
The next step is to configure our application to know from where it has to fetch the data.
In `src/environments/environment.prod.ts`, in `src/environments/environment.ts` and in `src/environments/environment.js` change `YOUR_FLOTIQ_API_KEY` to Read only Flotiq API key.
Remember to change them back to `YOUR_FLOTIQ_API_KEY` before committing code to repository.
You have to also change `SNIPCART_API_KEY` to your Snipcart public API KEY in `src/environments/environment.prod.ts` and in `src/environments/environment.js` to enable cart functionality.
1. **Start developing**
```sh
cd scully-products-starter/
npm install
```
If you wish to import example products to your account run:
```sh
flotiq import . [flotiqApiKey]
```
It will add 10 images and 4 products to your Flotiq account.
_Note: You need to put your Read and write API key as the `flotiqApiKey` for import to work. You don't need the `Product` content type in your account. If you already have products with ids `product-1`, `product-2`, `product-3` and `product-4` they will be overwritten._
Run `npm run start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
If you wish to add new elements to the project run `npm 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 `npm run build:prod` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
To build the static version with Scully run:
```sh
npm run build --prod
npm run scully -- --scanRoutes
npm run scully serve
```
This will start the Scully static server on `http://localhost:1668/`
1. **Manage your products using Flotiq editor**
You can now easily manage your products using [Flotiq editor](https://editor.flotiq.com)

1. **Update Flotiq Angular SDK when you create or update Type Definition**
Everytime you change something in your Content Type Definitions, you have to regenerate Flotiq Angular Package inside project.
1. Go to your dashboard in Flotiq, and click on Angular icon in "Your API packages" section, to download an SDK with the updated content of your schema.

2. Extract downloaded zip in `flotiq` directory in the project.
3. Done, you have updated Flotiq Angular SDK in your project!
### Further help with Angular
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
## Deploy
You can deploy this project to Netlify in 3 minutes:
[](https://app.netlify.com/start/deploy?repository=https://github.com/flotiq/scully-products-starter)
## Collaborating
If you wish to talk with us about this project, feel free to hop on our [](https://discord.gg/FwXcHnX) .
If you found a bug, please report it in [issues](https://github.com/flotiq/scully-products-starter/issues).