I'm not interested in the National Code but in Michigan's, which could be somewhat different.
Actually, it's your city or county's code you're interested in, and (even more importantly) how it's interpreted.
Virtually all jurisdictions adopted the model National Electrical Code - sometimes with alterations.
The thing to do is contact your local building code enforcement department (probably called something like "planning"). Ask them what, if any, deviations the local code has from the NEC (this will be either "none" or a small set.) Also ask them "What common mistakes people make in home projects that might make them fail an inspection." (This will tell you what they're looking for and what the local inspectors' interpretations are.)
Then draw up some minimal plans for what you want to do, go to the agency, and ask an inspector or engineer in the office if you're planning it right and what problems to look out for.
In general inspectors are very helpful at the office - you're acknowledging their authority, trying to do things right, and making things simpler for them at inspection time by not having things that need correction and a revisit. They are NOT helpful with questions on the site: Then you're using them as an unpaid electrician, plumber, etc. and reducing their performance rating by taking extra time out of their schedule of inspections.
In any case Michigan should have its version of the code available on the Net.
Fat chance. The organization that designs the "model code", like many other standards organizations, finances its operations by selling copies of the code, at exorbitant prices. It copyrights the "model code" and tries to convince governments that it retains copyright to it even after it's made law, and gets them to include it by reference rather than legislate it outright. Then it sues anybody who publishes the code for copyright violation. I don't know of ANY government that has put the code itself online (though I wouldn't be surprised if a few put online the legislation referencing it and any deviations in their local jurisdiction.)
There are very few online versions of electrical codes. There are ANY because Veeck decided there SHOULD be, put a copy online, got sued, LOST in federal court, LOST in the appeals court, petitioned for a rehearing en banc, WON that, and the Supreme Court decided not to hear the standards' organization's appeal
That means people who post it IN THE FIFTH CIRCUIT are reasonably safe for now, but anybody who posts it in another district may be sued and have to go through the whole thing again - and maybe lose at appeal, after which the supreme court may hear it and reverse it nationally - in which case those who published it in the Fifth Circuit are back on the hook for big bucks for copyright violation.
So you won't find any city or county publishing their code - which is a derived work of the model code (even if it's public domain due to being an act of a legislature).