flecks/website/docs/installation.mdx

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-12-31 16:23:28 -06:00
---
title: Installation
2024-01-03 16:14:01 -06:00
description: How to get started with your first flecks project.
2023-12-31 16:23:28 -06:00
---
2024-01-03 16:14:01 -06:00
import Create from '@site/helpers/create';
# Installation
The first step toward creating an application with flecks is to use the built-in
creation utility:
<Create type="app" pkg="hello-world" />
2024-01-04 15:51:19 -06:00
:::tip
You may also inspect the utility command options:
<Create type="app" pkg="--help" />
```
Usage: create-app [options] <app>
Arguments:
app name of the app to create
Options:
--package-manager <binary> package manager binary (choices: "npm", "bun", "yarn", default: "npm")
```
:::
2024-01-03 16:14:01 -06:00
## Start your application
Now, move into your new project directory and run `npm start`. You'll see a bunch of output, but the
important thing is the last line:
```
@flecks/server/entry up! +7ms
```
That means we've got an application up and running!
## Do something interesting
The only problem is that it doesn't do a single
thing except sit there. Let's get into how to configure our application to do something interesting
and start working on creating a fleck of our own.