Back

Get started with Alpine

Get started with Alpine

Creating a blog with Alpine is a command away, as well as deploying to many platforms.

Create a blog

Open a terminal an run the following command:

npx nuxi@latest init -t themes/alpine

Dependencies

Next, go to to my-blog/ directory and install the dependencies:

npm install

Development

Start the development server on port 3000:

npm run dev

Next, you can start creating your content in Markdown in the content/ directory.

Deploy

Static hosting

You can deploy Alpine to any static hosting by running the following command:

npm run generate

This command will create a dist/ directory with the compiled files ready to be uploaded to any static hosting.

Edge platforms

Alpine supports deploying to the following platforms with zero configuration:

Node server

You can deploy Alpine to a Node server by running the following command:

npm run build

This command will create a .output/ directory with the compiled files ready to be uploaded to any Node server.

To start the production server, run the following command:

node .output/server/index.mjs