This guide will help you go from nothing to something with Velo in a few minutes.
Velo is designed to be simple and easy to use, yet powerful and extensible. Velo can be set up with just a 1 command, and you can start building your web application in seconds.
Before you begin, ensure you have the latest version of Bun installed on your machine.
curlhttps://bun.sh/install|bash
Automatic Setup
To create a new Velo project, run the following command:
buncreatevelomy-app
This will create a new Velo project in the my-app directory, and will set up everything for you.
Once this is done, navigate to the project directory:
cdmy-app
And start the development server:
bundev
This will start the development server on http://localhost:3000. Open this URL in your browser to see your new Velo project.
Manual Setup
If you prefer to set up your project manually, you can do so by following these steps:
Create a new project:
mkdirmy-app&&cdmy-appbuninit
Add Velo to your project:
Open your project.json file and add these scripts:
Setup your src/index.ts file:
Start the development server:
This will start the development server on http://localhost:3000. Open this URL in your browser to see your new Velo project.
Project Structure
You can set up your project structure however you like, but we recommend the following: