Git Product home page Git Product logo

demo-restaurant-astro-json's Introduction

demo-restaurant-astro-json

An example which uses structure content in JSON files to generate an archetypal restaurant site using Astro.

๐Ÿ‘‰ https://demo-restaurant-astro-json.netlify.app/

This example is useful for exploring how Astro can generate a site from structured data. You can also use a decoupled CMS to power such a site, either by consuming the CMS data directly from its API, or by adding a small layer of abstraction which populates the site's data files from the CMS ahead of each build.

For an illustration of using Astro with a Netlify Build Plugin to pull content from a decoupled CMS, you can explore this example, and read about this pattern in this blog post.

Usage for Development and Deployment

Clone this repo and then in your working directory:

# install the dependencies including Astro
npm i

# run the local development server
npm run dev

Speedy start

To clone this repo and instantly generate and deploy it for free on Netlify, click the Deploy To Netlify button below.

Deploy to Netlify

For deployment to Netlify

# Install the Netlify CLI globally
npm i -g netlify-cli

# create a Netlify site as a deployment target
netlify create

# deploy the latest local build to production
npm run build
netlify deploy --prod

demo-restaurant-astro-json's People

Contributors

philhawksworth avatar

Watchers

James Cloos 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.