Install Ant
Run the installation script to get the latest version of Ant:Verify the installation:You should see the Ant version printed to your terminal.
Create your first server
Create a new file called This creates a simple HTTP server with three routes:
server.js with the following code:server.js
/- Welcome message with version/hello- Simple greeting/json- JSON response with timestamp
Run the server
Start your server with the You should see:Your server is now running and ready to handle requests!
ant command:Next steps
Now that you have a working server, explore more features:HTTP Server Guide
Learn about routing, async handlers, and advanced features
API Reference
Explore the complete Ant API documentation
File System
Read and write files with async/await
Fetch API
Make HTTP requests to external APIs
What you learned
In this quickstart, you:- Installed Ant on your system
- Created a simple HTTP server with multiple routes
- Handled different response types (text and JSON)
- Tested your server with curl
Ant.serve(), which is powered by libuv for high performance. It automatically handles concurrent requests and includes features like gzip compression for responses over 1KB.