Skip to content

tkr-sh/tuto.tk.run

Repository files navigation

programming_tutorial

The following commands are compatible with just, so you can also use just instead of wini

Start

To enter the development environment:

wini env # This requires Nix

To run the project:

wini run # By default, starts on port 3000

After that, you can see the project by looking at localhost:3000, from your browser or in CLI (curl localhost:3000) !

Creating a new page

To create a new page:

wini new page

After that you can edit ./src/server.rs to add

.route("/your-page", get(pages::your_page::render))

Deploy

You can run your application in production by doing:

wini run-prod

How to do ... ?

Wini commands are just based on just, so you can look at ./justfile to see what is run behind the hood, and you can customize it as you wish!

Or you can do

wini -h
# or
wini help
# or
just -l

for a quick recap

About

A website for programming tutorials!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published