Teakit is optimized for Bun which is a JavaScript runtime that aims to be a drop-in replacement for Node.js.
You can install Bun with the command below:
We recommend starting a new Teakit Application using bun create teakit, which sets up everything automatically.
Once done, you should see the folder name app in your directory.
Start a development server by:
Navigate to localhost:3000 should greet you with "Hello World".
To manually create a new Teakit Application, install @teakit/core as a package:
Open your package.json file and add the following scripts:
These scripts refer to the different stages of developing an application:
If you are using TypeScript, make sure to create, and update tsconfig.json
to include compilerOptions.strict
to true
:
Here's the recommended file structure for Teakit project if you don't strictly prefer a specific convention:
Congrats! You've just created a new web server with teakit.