I signed up for my first trail race and let a running app guide my training, from base building to the finish line. Here’s how it all played out.