Skip to content

apprunjs/apprun-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppRun-Starter

This site is built with AppRun-Site.

AppRun-Site is a command-line tool for building modern web applications with AppRun. It consists of three features:

  • A build command compiles your code to ES Modules with esbuild.
  • A build command option renders your pages to create a static website
  • A development server that supports your code run as Single Page Applications (SPA) and supports Server-Side Rendering (SSR)

This site has the following structure:

/api
  /products.js        <- demo of API
/components
  /comic.tsx          <- demo of a web component
  /layout.tsx         <- layout component
/pages
  /main.tsx           <- start up code (register web component and renders the layout)
  /index.md           <- home page
  /docs
    /index.md         <- docs page
  /about
    /index.md         <- about page (demo of web component)
  /products
    /index.tsx        <- products page (demo of API call)
/public

You can tart the dev server and see the site from http://localhost:8080 as an Single Page App.

npm start

To generate a static web site, run the npm run render command. The static web site is created in the public directory.

npm run render

Have fun!

About

AppRun application starter template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published