Building on top of posts is easy. Throw 'em in the ground, chalkline a level line and cut 'em to level. Attach your floor joists and continue from there.
But, I might suggest you think more about how you're going to get the posts attached to the ground. There's two reasons to drive posts into the ground — when the ground can't support weight or is subject to liquefaction (marsh, reclaimed
land like San Francisco, etc) or when you are expecting moment forces (bending, like you'd get in an
underground greenhouse from the earth's weight on the walls). Otherwise, it's a good idea to keep 'dry feet' — cedar or not. You can set the posts on
concrete blocks, poured concrete footings, or a hard rock like granite (you'll need to carve the bottom of the post to conform to the rock's contour). My old log cabin is built on roundwood posts that sit on granite blocks, but I mostly use the cheap concrete blocks that hold 4x4/6's from Home Depot for sheds and smaller structures.
It might help to see a diagram of how you're planning to build this structure. Your foundation / footing design depends a lot on your structural strategy (post & beam, stick, log cabin, etc) since the forces in the posts will vary.