Other, more experienced, guys will chime in, hopefully. But assuming you've checked all the safety stuff, i.e. kill switch, side stand switch (doesn't sound like those, since the bike turns over) and the fuses, the 3 components that usually cause that symptom are the coil, the pickup coil, and the CDI (igniter). There are a lot of threads on how to check the first 2. The igniter, however, has no way to be tested.
The coil is easy to test, but might not be easy to diagnose if it's the problem. The pickup coil, also easy, but the stator/alt cover on the right side of the bike might need to come off to remove it and check it properly. Does the bike start this morning? If it does, I'd probably check this right away.
Seems like lately on here, members with a similar problem (including myself) ended up needing to replace the igniter, the most expensive part.
There are TONS of threads on how to test the first 2. Maybe Forchetto or DEcosse will chime in. They (and some others here) seem to be wizards with multimeters and soldering guns