Skip to main content
Module

x/crate/README.md

a full-stack web framework built with deno!
Go to Latest
File
crate

crate



readme

crate is a fullstack web framework built on deno!

available on:
[deno.land/x]
[github]



get started

all you need to do is make two files. seriously!

main.ts
const App = {
  directory: "./src",
  routes: {
    "/": "./index.html",
    "/redirect": "https://crate.land"
  }
}

import Crate from "https://crate.land/mod";

let crate = new Crate();
crate.serve(App);

./src/index.html
 <html>
  <main>
    hello from index.html!
    <br/>
    <Link to="https://crate.land/deno">
      Built with Crate!
    </Link>
  </main>
</html>



roadmap


  • make a basic server-side rendering tool and an automatic server
  • attach a universal backend (pallet) so you can run it anywhere
  • ??? — make an issue!


where’s the old crate?


for those of you who don’t know, crate used to be a fancy webview wrapper. now, it’s evolving into a fullstack web framework that will have a seamless native experience as well with an upcoming tool called “pallet.”


dev


Deno release GitHub license

built with ♡ and deno by jordan reger.