Skip to content

tramvaijs/tramvai-records

Repository files navigation

tramvai-records

Example application with View Transitions API support. Based on Astro Records.

Interactive demo.

Install dependencies

Run installation with selected package manager yarn

Usage

  • yarn start - run development server
  • yarn build - production build

Project structure

  • src - application source code
    • index.ts - application entry point, where all tramvai modules are connected
    • postcss.js - postcss configuration object
    • routes - application pages
    • shared - reused modules of the application

We recommend follow feature-sliced methodology guidelines to structure application code.

Important modules

  • @tramvai/module-server - processing client requests, working with papi. Documentation
  • @tramvai/module-render - server-side html rendering and client-side hydration. Documentation
  • @tramvai/module-router - router integration in the application. Documentation

Next steps

About

Demo app with View Transitions API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published