Literally you are going to have to apply for your brewer's licence with the TTB. They are going to want to see a blue print of how your brewing equipment will be set up, what size all your tanks are, how do you have the calibrated, etc.
You also have to make sure your building is up to code for whatever size brewery you want to install (and frankly, if you aren't going at least 1-3 bbls it is a waste of time and effort. Think about the time it taskes you to brew a 10 gallon batch, and divide that by the amount of pints you can sell minus your ingredient cost, and you will see that you are actually in the hole unless your time means nothing to you). They are going to want to see a wet area, possibly a solid waste interceptor, certain types of lighting, some of this stuff you probably already have to deal with for your restaurant.
Local code is going to be completely up to your local authorities. Are there any other local breweries in the area? You might start with them.