📄
BoltUI Docs (Preview)
  • Getting Started
    • Introduction
    • Installing Bolt
    • Hello World
  • Understanding Bolt
    • Creating UI
    • Components
    • Properties & Events
    • Styles
    • Custom Components
    • Reactivity
    • Component Lifecycle
    • Routing
  • API Reference
    • index
      • State
      • Component
      • render
      • attribute
      • event
      • onLoad
      • onRemove
      • id
      • Class
      • When
    • components
      • Link
      • AppLink
      • GenericElement
    • events
      • onGenericEvent
    • boltrouter
      • Router
      • AppRouter
      • Url
      • Navigate
      • AppNavigator
  • Future
    • Server Side Rendering
    • Multi-Platform
Powered by GitBook
On this page
  1. Getting Started

Installing Bolt

Getting started with Bolt

Now that you actually want to install Bolt, it's actually very easy, so easy that we did not have to create any CLI tool.

Bolt does not uses any pre-processor libraries, though you can use SASS or LESS if you want, and that are just some optional cases. Bolt as of now supports only front-end and I am hoping to build SSR soon too, but till then, we will be using Vite to create our app.

As you expect, simply open your terminal and create a new vite project on vanillaJS settings

$ npm create vite@latest

Bolt as of now does not support TypeScript, so when creating the vite project, make sure you use vanilla-JS and not vanilla-TS

Now that you have created your project, let's switch to the project directory and install the bolt npm package

$ npm i boltjs-preview

And you are done! Now you can use Bolt as much as you want wherever you want with all the features of any modern front-end framework like react or angular

PreviousIntroductionNextHello World

Last updated 2 years ago