Test driving vlt
- Express server running on port 3000 withGET endpoint at
/that returns "Hello World"
- Node.js (version 18 or higher)
- npm (20 or higher)
- vlt
The dependencies are already installed. If you need to reinstall:
vlt install-
Build and run in development mode:
vlt run dev
-
Build the TypeScript files:
vlt run build
-
Run the built application:
vlt start
-
Watch for TypeScript changes:
vlt run watch
Once the server is running, you can test it by:
- Opening your browser and navigating to
http://localhost:3000 - Using curl:
curl http://localhost:3000 - Using any HTTP client like Postman or Insomnia
The server will respond with "hello world" for GET requests to the root endpoint.
├── src/
│ └── index.ts # Main Express application
├── dist/ # Compiled JavaScript files (generated)
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file