Skip to content

apprunjs/apprun-site-template

Repository files navigation

My AppRun Site

This site is built with AppRun-Site.

It has the following structure:

/_                  <- backend code
  /comic.js         <- demo action
/api                <- backend code
  /comic.js         <- demo API
/components
  /comic.tsx        <- demo component
  /layout.tsx       <- layout component
/pages              <- fronet end code
  /index.html       <- main page, load in the browser
  /main.tsx         <- start up code, renders the layout
  /index.md         <- home page
  /about
    /index.md       <- about page
  /contact
    /index.tsx      <- contact page
/public             <- generated site for production
/server.js          <- generated server

You can add pages under the pages directory by creating sub-directories. And then, add an index file such as index.html, index.md, index.jsx, or index.tsx in the sub-directory, it will be created as a page.

Then, you can use:

  • npm start to run the server
  • npm dev to start the dev server in watch mode
  • npm run build to build for production

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published