DEV Community

ynwd
ynwd

Posted on

Build React SSR Page in Seconds Powered by Deno and TypeScript

Supercharge your SSR workflow: Harness the power of Fastro, Deno, and TypeScript to build React SSR pages in mere seconds.

First, make sure you have Deno installed. See the deno manual for details.

Then, create a folder for your project and enter to it.

mkdir my-project && cd my-project
Enter fullscreen mode Exit fullscreen mode

Generate default project from command line.

deno run -A -r https://fastro.deno.dev
Enter fullscreen mode Exit fullscreen mode

The above command will generate default folders and files that you can use for the initial project.

Now let's run the application

deno task start
Enter fullscreen mode Exit fullscreen mode

If there is no problem, you will see this message on the terminal

Listening on http://localhost:8000
Enter fullscreen mode Exit fullscreen mode

Open that link on your browser or hit them via curl

curl http://localhost:8000
Enter fullscreen mode Exit fullscreen mode

You can find more detailed instructions in the fastro manual page.

Top comments (0)