Giter Club home page Giter Club logo

scully-recipes-starter's Introduction

Flotiq logo

Scully Starter - Recipes

This is a Scully starter project for a recipes website. It's configured to pull recipes data from Flotiq and can be easily deployed to your cloud hosting - Heroku, Netlify, etc.

Live Demo: https://vibrant-mclean-8da635.netlify.app/

Screenshot

This project was generated with Angular CLI version 11.0.2.

Quick start

  1. Clone project

    git clone https://github.com/flotiq/scully-recipes-starter
  2. Setup "Recipe" Content Type in Flotiq

    Create your Flotiq.com account. Next, create the Recipe Content Type:

    Recipe content type in flotiq

    Note: You can also create Recipe using Flotiq REST API.

  3. 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 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.

  4. Start developing

        cd scully-recipes-starter/
        npm install

    If you wish to import example recipes to your account install flotiq-cli, and run in project directory:

        flotiq import . [flotiqApiKey]

    It will add 4 images and 2 recipes 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 Recipe content type in your account. If you already have recipes with ids recipe-1, recipe-2 they will be overwritten.

    Run ng 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 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:

    npm run build --prod
    npm run scully -- --scanRoutes
    npm run scully serve

    This will start the Scully static server on http://localhost:1668/

  5. Manage your recipes using Flotiq editor

    You can now easily manage your recipes using Flotiq editor

    Managing recipes using Flotiq

  6. 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. Downloading Angular SDK
    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.

Deploy

You can deploy this project to Netlify in 3 minutes:

Deploy

Collaborating

If you wish to talk with us about this project, feel free to hop on our Discord Chat .

If you found a bug, please report it in issues.

scully-recipes-starter's People

Contributors

ciotkacierpienia avatar dominikilski avatar karolnet avatar trzcina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.