Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mclawrenceco/fireship.io

 
 

Repository files navigation

Fireship

The Fireship PRO course platform frontend is built with Svelte, Tailwind, Hugo, Firebase, and Flamethrower.

Contributing

All static content is managed with Hugo in the content directory. You can easily fix typos by modifying the markdown directly on GitHub.

How to Run

  1. Install Hugo Extended version 0.101.0 or greater.
  2. Clone the repository:
    git clone <this-repo>
  3. Install dependencies:
    npm install
  4. Start the development server:
    npm start
  5. Open your browser and navigate to http://localhost:6969/.

Developing Components

  1. Create a Svelte file in the app/components directory with a custom element tag:
    <svelte:options tag="hi-mom" />
    
    <script>
        export let greeting: string;
    </script>
    
    <h1>Hi Mom! {greeting}</h1>
  2. Export the component from app/main.ts:
    export * from './components/hi-mom.svelte';
  3. Use the component anywhere in your HTML or Markdown:
    <hi-mom greeting="I made a web component"></hi-mom>

Note: Svelte web components require all styles to be encapsulated. You can use Tailwind, but only with @apply in the component. Global styles will not work.

Commands

  • npm start: Starts the main development server and runs everything you need.
  • npm run dev: Runs components in isolation and serves app/index.html as a playground for components.
  • npm run hugo: Only runs the static site.
  • npm run build: Builds the project for production.

About

Build and ship your app faster https://fireship.io

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Svelte 42.7%
  • HTML 29.3%
  • TypeScript 14.9%
  • SCSS 9.4%
  • JavaScript 3.7%