Code Monkey home page Code Monkey logo

culinarycache's Introduction

Astro Starter Kit: Basics

npm create astro@latest -- --template basics

Open in StackBlitz Open with CodeSandbox Open in GitHub Codespaces

πŸ§‘β€πŸš€ Seasoned astronaut? Delete this file. Have fun!

just-the-basics

πŸš€ Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
β”œβ”€β”€ public/
β”‚   └── favicon.svg
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── Card.astro
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   └── Layout.astro
β”‚   └── pages/
β”‚       └── index.astro
└── package.json

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:4321
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

πŸ‘€ Want to learn more?

Feel free to check our documentation or jump into our Discord server.

culinarycache's People

Contributors

satanshumishra avatar

Stargazers

voxel!() avatar

Watchers

voxel!() avatar  avatar

culinarycache's Issues

[RFC] Proposal: A data encoding method for recipe instructions

Proposal

Introduction

This proposal outlines a method by which data for recipe instructions can be encoded within a database. It will utilize a stringified JSON object, which can be deserialized on the Astro server-side or the Tauri backend (preferred, translated into markdown and served via request on client-render(?)).

The Instructions Interface

This interface describes the general first level of a recipe Instructions object. This object describes the basic information, such as the name, author, date of writing, etc. It will also contain a property for variations and recipe-building instructions.

interface Instructions {
    name: string;
    author: string | Author;
    date: DateTime;
    // etc...
    sections: RecipeSection[];
}

The Instructions.sections Entry Array & RecipeSection Interface

This interface describes each section of a recipe, whether there is just one big section or a bunch of small ones. Each object encodes the name of the section, the ingredients and quantities, an index, and the itemized steps.

The index property is used to test for collisions, leading to two options: one variation or multiple variations at the same index. For example, when making Π’Π°Ρ€Π΅Π½ΠΈΠΊΠΈ, since only one dough type is used, and it is first in the order, it has index: 1. However, since different fillings exist, such as cherries or cottage cheese, they can all be placed at index: 2. The collision can be detected by mapping each index to an array and testing the length. If length > 1, then the user needs to choose between the items in the array.

interface RecipeSection {
    name: string;
    index: number;
    subtype?: string | SubtypeEnum;
    ingredients: {} satisfies Record<string, string>;
    steps: Array<string | RecipeSectionStep>;
}

interface RecipeSectionStep {
    instruction: string;
    photoSrc: string | URLResolvable;
}

Amendments may be made later, but let me know what you think!

Standardization of Changeset Summaries

Goal: To come up with a standard format to follow when it comes to changesets. Add a comment to this issue with a list of things each of us would like to see mentioned as part of the changeset summary. This list will be used to create the standard.

Product Roadmap

The following is the roadmap for creating recipes:

  • Step-by-step on-boarding process.
  • Ask for recipe name.
  • Ask for ingredients w/ Preparation and Cooking time.
  • Ask for instructions.
  • Cross-check instructions with ingredients list.
  • Ask for Recipe image.
  • Provide Summary of Recipe.
  • Add to database.

The following is the roadmap for viewing recipes:

  • Timer Functionality to track time (Refrigerate for 20m)
  • Cook Counter (Fun Easter Egg)
  • #4

The following is the roadmap for app behaviour:

  • Open multiple instances or windows with multiple recipes.

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.