Our great sponsors
-
// frontend/ssr/server.tsx import { Application, Router } from 'https://deno.land/x/[email protected]/mod.ts'; import { React, ReactDOMServer, StaticRouter, } from "../dep.ts"; import App from "../components/App.tsx"; const app = new Application(); const port: number = 8000; const jsBundlePath = "/main.js"; const { diagnostics, files } = await Deno.emit("./ssr/client.tsx", { bundle: "esm", compilerOptions: { lib: ["dom", "dom.iterable", "esnext"] }, }); console.log(diagnostics); const router = new Router(); router .get("/", (context) => { const app = ReactDOMServer.renderToString( StaticRouter> ); context.response.type = "text/html"; context.response.body = ` Sanity <-> Deno ${app} `; }) .get(jsBundlePath, (context) => { context.response.type = "application/javascript"; context.response.body = files["deno:///bundle.js"]; }); app.addEventListener("error", (event) => { console.error(event.error); }); app.use(router.routes()); app.use(router.allowedMethods()); app.listen({ port }); console.log(`Server is running on port ${port}`);
-
The complete source code for the application built in this tutorial can be found here on GitHub. Happy coding!
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
In this tutorial, we will build a movie application to show some bestselling movies and A-list actors. Sanity.io will be used for the backend to manage contents, which includes creating, editing, and updating data for the project. While Deno and React will be used for the front end and server-side rendering respectively. Tailwind CSS will be used to style the application UI.
-
For our Deno server, we are using the Oak middleware framework, which is a framework for Deno's HTTP server. It is similar to Koa and Express and the most popular choice for building web applications with Deno. In server.tsx, add the following code:
-
For our Deno server, we are using the Oak middleware framework, which is a framework for Deno's HTTP server. It is similar to Koa and Express and the most popular choice for building web applications with Deno. In server.tsx, add the following code:
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Related posts
- Build your free link shortener with Next.js and Vercel Postgres
- Build Your Own Currency Calculator App with Next.js 13, Node.js, Firebase, TypeScript and Tailwind CSS
- Is it recommended that a backend for React be written in Javascript? Or is another language like Python Ok
- I have build a Next.js + MongoDB + Tailwind + TypeScript template Have a look and guide for using it.
- Best backend language to learn