Getting started
To create a Lack app you can use the CLI or do it manually
CLI
Create a folder
Create a foldet for your project. Lack will use the folder you are currently in.
mkdir lack-app
cd lack-app
Run the CLI
Run the CLI to generate the rest of the app
bunx lack-frw create
Install dependencies
Use whatever package manager you like to install dependencies
bun i
Manually
Create a TypeScript app
Generate a basic TypeScript app with whatever tool you like.
For example:
mkdir lack-app
bun init -y
Install dependencies
Install the lack-frw
as a dev dependency
bun i -D lack-frw
Add your routes
Create a folder named "app" and add some routes to it.
Add Lack scripts to your package.json
Example package.json
{
// rest of your package.json
"scripts": {
"dev": "lack dev",
"build": "lack build",
"deploy": "lack deploy"
}
}
Create a config file
Create a lack.config.js
file according to the Configuration page