Skip to content

Getting started

varsha is a premium website starter template built on Astro. This guide covers prerequisites, installation methods, and running your first local development server.

Before installing varsha, make sure you have the following tools:

ToolMinimum versionNotes
Node.js18.17.0 or 20.3.0+LTS recommended
npm9.0+Bundled with Node.js
A code editorVS Code with the Astro extension recommended
Git2.0+Required for cloning and deployment workflows

You can check your Node.js version by running:

Terminal window
node --version

Choose one of the following methods to create a new varsha project.

Recommended: create-varsha

The official CLI scaffolds a project with dependency installation and git init in one command.

degit

degit downloads the latest template without Git history, giving you a clean starting point.

Git clone

Clone the full repository if you want to contribute back or preserve Git history.

Section titled “Option 1: Create with create-varsha (recommended)”
Terminal window
npx create-varsha my-varsha-site
cd my-varsha-site

The CLI automatically installs dependencies and initializes a git repository. You can also use npm create varsha, yarn create varsha, pnpm create varsha, or bunx create-varsha.

Options:

  • --pm <manager> — Use a specific package manager (npm, yarn, pnpm, bun)
  • --no-install — Skip dependency installation
  • --no-git — Skip git initialization
  • --template <branch> — Use a specific branch or tag
Terminal window
npx degit yethikrishna/web-ui-template my-varsha-site
cd my-varsha-site
npm install

This creates a new directory called my-varsha-site with a fresh copy of the varsha starter, excluding the original Git history.

Terminal window
git clone https://github.com/yethikrishna/web-ui-template.git my-varsha-site
cd my-varsha-site
npm install

If you clone with Git, consider removing the existing remote and adding your own before making commits:

Terminal window
git remote remove origin
git remote add origin https://github.com/your-username/your-repo.git
Terminal window
npm create astro@latest -- --template yethikrishna/web-ui-template my-varsha-site
cd my-varsha-site
npm install

Start the local dev server:

Terminal window
npm run dev

By default, varsha runs on http://localhost:4321. Open this URL in your browser to see your site.

The dev server supports:

  • Hot module replacement (HMR): Changes to .astro, .mdx, .css, and .ts files are reflected instantly without a full page reload.
  • Local network access: Add --host to expose the dev server on your local network: npm run dev -- --host.

varsha includes the following npm scripts out of the box:

ScriptCommandPurpose
devnpm run devStart the local development server
buildnpm run buildBuild the production site to ./dist/
previewnpm run previewPreview the production build locally before deploying
astronpx astroRun Astro CLI commands directly

After running npm run dev, you should see:

  1. The varsha landing page at http://localhost:4321/
  2. The documentation at http://localhost:4321/docs/
  3. The blog at http://localhost:4321/blog/

If all three pages load, your installation is working correctly.

Quick start

Build your first custom page and deploy it in under five minutes.

Quick start →