Install
Every story has a grand prologue, and starting a new project with Milkio is no exception.
Install
By running it and answering a few questions, you can obtain a new Milkio project.
Running
Open your Milkio project directory using VS Code, or add it to your VS Code workspace.
Now, Milkio is running on port 9000
! You can send a POST request with your name to greet the world!
API Testing
In the VS Code Explorer panel, open the /src/apps/hello-world/say.ts
file to see its source code.
The code is divided into two parts, the action method executed when accessing the API above, and the test of the API below. You can write the logic of your API above and write the corresponding test code below.
Client
Milkio can share types with clients and provides auto-completion and code hints. How to get started?
What’s Next?
Now that you have successfully created a Milkio project and understand the basic development pattern of Milkio, we recommend that you read the Essentials section and then explore the parts you are interested in.
If you are an experienced developer who has been using at least one other backend framework before, please read the To Forget chapter, which can help you avoid some confusion while learning Milkio.