Skip to content

mastrojs/template-basic-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Basic template for a Mastro project using Node.js

Topics

Resources

Stars

Watchers

Forks

Contributors