Giter Site home page Giter Site logo

rodneylab / upstash-astro Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 361 KB

Get Started with Astro and Redis Tutorial Starter Code

License: BSD 3-Clause "New" or "Revised" License

JavaScript 3.62% Shell 1.34% Svelte 47.89% Astro 37.69% TypeScript 9.46%
astrojs cloudflare-pages cloudflare-pages-functions cloudflare-workers redis upstash svelte

upstash-astro's Introduction

Get Started with Astro and Redis Tutorial

Open in StackBlitz

This is starter code for the Get Started with Astro and Redis tutorial. In that tutorial we create a basic notes app using Astro in SSR mode. We use Cloudflare Workers to interface with the Upstash serverless database. To get going clone the starter then follow the link to complete the tutorial:

pnpm create astro -- --template rodneylab/upstash-astro

๐Ÿš€ Server Side Rendering (SSR)

Project uses Cloudflare Pages with Cloudflare Workers running in advanced mode. Update astro.config.js to switch to directory mode. To preview built site run:

pnpm preview:cloudflare

๐Ÿงž Commands

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

Command Action
pnpm install Installs dependencies
pnpm astro telemetry disable Disable data collection
pnpm dev Starts local dev server at localhost:3000
pnpm build Build your production site to ./dist/
pnpm preview:cloudflare Preview your build locally with Wrangler
pnpm astro ... Run CLI commands like astro add, astro build
pnpm astro --help Get help using the Astro CLI

Feel free to jump into the Rodney Lab matrix chat room.

upstash-astro's People

Contributors

rodneylab avatar

Stargazers

 avatar  avatar

Watchers

 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.