Getting Started with Waypoint
It only takes a few minutes to get started with Waypoint on your local development environment. This quick start example uses Docker, either on Linux or with Docker Desktop for Windows and macOS. This will introduce you to the basics of Waypoint, even if your target environment is not Docker.
Afterwards, go in-depth with tutorials for AWS, Azure, GCP, Kubernetes, and Nomad. For detailed Kubernetes-focused documentation, see the dedicated Kubernetes section.
Note: We also have Waypoint Getting Started tutorials for other platforms. Check out the Getting Started tutorials for your favorite platform.
Installing Waypoint
Download the Waypoint binary and install it to your system. The
easiest way to install it is to use our official signed packages for Homebrew,
apt
, yum
, and other package managers.
Installing the Server
Start the Docker Desktop application.
Install the Waypoint server to Docker with the install
command. The
-accept-tos
flag is required to use the waypoint.run
URL publishing service.
When it completes, you'll see this message.
Initializing Waypoint
Clone the git repository with Waypoint application examples, or download the code directly from GitHub.
Navigate to the docker/nodejs
directory.
All the code you need is provided in this directory, including a waypoint.hcl
configuration file that will deploy the application to Docker.
Run init
to set up the project.
You'll see this output.
Deploying
Now, run waypoint up
to build, deploy, and release the application.
It may take a minute or two and then you'll see this output.
Visit either URL shown in the output. You will see a NodeJS application running on your local Docker Desktop instance.
Changing
Change any part of the file at docker/nodejs/views/pages/index.ejs
such as
the <h1>
tag at about line 18. Run up
again to deploy a new version of the
application.
You'll see a new URL that you can visit to view the latest version of the application.
Debugging
Waypoint includes several sub-commands to help you monitor and debug your application.
Run logs
to view Waypoint's logs. This may not include all of your
application-specific logs, but will display Waypoint's logs.
The exec
command connects you to a running instance of your application where
you can examine the process list, run application-specific database upgrade
commands, or do other debugging.
Viewing the Web UI
Waypoint includes a web interface for viewing logs, deployments, builds, and
other details. Launch it with the ui
command.
Destroy
When you are done, run destroy
to remove the application from Docker.
Notice that the destroy
command requires confirmation to run.
Next Steps
You have now used Waypoint to build, deploy, and release a NodeJS application to Docker. Waypoint removed the overhead of managing different technologies to build, deploy, and release applications.
Check out the other in-depth tutorials for AWS, Azure, GCP, Kubernetes, and Nomad.
For detailed Kubernetes-focused documentation, see the dedicated Kubernetes section.