Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 1.46 KB

File metadata and controls

39 lines (20 loc) · 1.46 KB

Mastro Template Basic for Node.js

This is a basic TypeScript template for Mastro when using Node.js.

Click the green Use this template button in the top right to create your own copy of this repository. Then clone the Code to your computer.

Run locally

Mastro requires Node.js >=24, which can be installed via pnpm – the package manager recommended by JSR. Therefore, first install pnpm: On Windows, use the PowerShell method. On macOS/Linux use the curl method (The pnpm version in homebrew isn't able to install Node.js).

The first time, you need to install the project dependencies:

pnpm install

After that, to start the server:

pnpm run start

and open http://localhost:8000 in your browser.

To generate the whole static site (this will create a generated folder):

pnpm run generate

Next steps

To see how Mastro works, follow the guide.

To make sure you're using the latest Mastro packages:

pnpm update "@mastrojs/*" --latest

Deploy to production