Coder Social home page Coder Social logo

aduwoayooluwa / astro-partykit-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickytonline/astro-partykit-starter

0.0 0.0 0.0 468 KB

Home Page: https://astro-partykit-react-starter.netlify.app

Shell 10.09% JavaScript 17.90% TypeScript 39.70% CSS 3.31% Astro 29.00%

astro-partykit-starter's Introduction

Astro Partykit Minimal Starter Kit

This is a minimal starter kit for Astro and Partykit using React.

๐Ÿงž 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 as well as partykit on localhost:1999
ntl dev Starts Netlify integration along with local dev server at localhost:8888 as well as partykit on localhost:1999
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

If you plan to use Netlify, you need to install the Netlify CLI to run ntl dev.

๐Ÿ‘€ Want to learn more about Astro?

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

๐Ÿ‘€ Want to learn more about Partykit?

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

๐Ÿš€ Project Structure

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

/
โ”œโ”€โ”€ public/
โ”œโ”€โ”€ party/
โ”‚   โ””โ”€โ”€ index.ts
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ components/
โ”‚       โ””โ”€โ”€ Party.tsx
โ”‚   โ””โ”€โ”€ pages/
โ”‚       โ””โ”€โ”€ index.astro
โ”‚       โ””โ”€โ”€ chat/
โ”‚           โ””โ”€โ”€ 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.

src/components/ is where components go, Astro/React/Vue/Svelte/Preact components. For this starter project, we're using React, but feel free to switch to your favorite framework.

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

Deployment

Deploy to Netlify

The project is configured to deploy to Netlify. For more information on deploying to Netlify, see A Step-by-Step Guide: Deploying on Netlify.

If you'd like to deploy via the Netlify CLI, you can run the following commands:

npm install netlify-cli -g # Install the Netlify CLI
netlify init # Connect your project to Netlify
netlify deploy --build # Deploy your site add --prod for production

Deploy to Partykit

For the Partykit side of things you can use the Partykit CLI.

npx partykit deploy

For more information see their documentation.

astro-partykit-starter's People

Contributors

adiati98 avatar dependabot[bot] avatar nickytonline avatar satoshi-sh 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.