Why build a basic bed when you could build this house frame toddlers bed. This one is sized for a crib mattress but you could adjust the width and length to fit a single bed too. Free plans at the link.
Here is a free woodworking plan to build a house frame bed to fit a full size mattress. These plans are complete with step-by-step instructions.