Hello World 👋
info
Difficulty: 🟢 Beginner
Length: 5 minutes
Before getting started, read the prerequisites to make sure your development environment is ready.
Overview​
In this tutorial, we're going to build an app that exposes a single endpoint and responds with a static response.
When we're done, we should be able to make a GET
request to the /
endpoint:
curl --request GET \
--url http://localhost:8080
And our server should respond with the following response:
HTTP/1.1 200 OK
Connection: close
Content-Length: 21
Content-Type: text/plain; charset=utf-8
Welcome to Dart Frog!
Creating a new app​
To create a new Dart Frog app, open your terminal, cd
into the directory where you'd like to create the app, and run the following command:
dart_frog create hello_world
You should see an output similar to:
✓ Creating hello_world (0.1s)