Important
We are not actively maintaining this repository due to low interest from our users. PRs are welcome.
This is a Scully starter project for a blog. It's configured to pull blog posts data from Flotiq and can be easily deployed to your cloud hosting - Heroku, Netlify, etc.
Live Demo: https://thirsty-hoover-9327b3.netlify.app/
Screenshot
This project was generated with Angular CLI version 9.1.7 and updated to version 13.0.2.
-
Clone project
git clone https://github.com/flotiq/scully-blog-starter
-
Setup "Blog Post" Content Type in Flotiq
Create your Flotiq.com account. Next, create the
Blog PostContent Type:Note: You can also create
Blog Postusing Flotiq REST API. -
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, insrc/environments/environment.tsand insrc/environments/environment.jschangeYOUR_FLOTIQ_API_KEYto Read only Flotiq API key.Remember to change them back to
YOUR_FLOTIQ_API_KEYbefore committing code to repository. -
Start developing
cd scully-blog-starter/ npm installIf you wish to import example projects to your account install flotiq-cli, and run in project directory:
flotiq import . [flotiqApiKey]It will add 1 image and 2 blog posts to your Flotiq account.
Note: You need to put your Read and write API key as the
flotiqApiKeyfor import to work. You don't need theBlog Postcontent type in your account. If you already have posts with idsblogpost-1andblogpost-2they will be overwritten.Run
npm run startfor a dev server. Navigate tohttp://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-nameto generate a new component. You can also useng generate directive|pipe|service|class|guard|interface|enum|module.Run
npm run build:prodto build the project. The build artifacts will be stored in thedist/directory. Use the--prodflag for a production build.To build the static version with Scully run:
npm run build --prod npm run scully -- --scanRoutes npm run scully serve
This will start the Scully static server on
http://localhost:1668/ -
Manage your posts using Flotiq editor
You can now easily manage your posts using Flotiq editor
-
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.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
You can deploy this project to Netlify in 3 minutes:
If you wish to talk with us about this project, feel free to hop on our .
If you found a bug, please report it in issues.



