Here's some Ideas for building your base.
Notes for all bases[]
Put floors inside your base. That way, Ghouls and Players can't spawn in it. The main flaw to most bases is that it isn't that protected so the Ghouls and other Players will break it and kill you.
You can always combine ideas!
1: The Thick-Walled House[]
For this you will need LOTS of wood, stone, or metal. Leave a big space for your base, surround your base with lots of walls and doors, and repeat the process for as many layers as you can. Don't forget doors! However, after every day, you should fix your damaged walls with a hammer and/or add new ones.
2: Abandoned House[]
First, you need to craft about 8 walls and 4 doors. After you have done so, go to a abandoned house, and put either doors or walls in front of every entrance, so nobody gets in. Now, this house is your house!
3: Self-Mending Base[]
You will need lots of normal(not low) walls and doors, and even more lapabots. First, you make a normal 1-layered base with the walls and doors, and then you place as many lapabots as you can in your base. If anyone tries to break in your base, your lapabots will rush to the rescue, repairing the walls as soon as they hit it.