For the front, you get hangers that go around the steerer under the headset nut. For the rear, you can get a hanger that is fastened under a seat skewer, but I suspect folding will be a massive problem. Similar problem at the front, you won't be able to remove the steering riser when folding.