Assuming we don't elect the fascist, both Democrats and Republicans are going to have to do some desperate soul searching this election.
Democrats are going to have to acknowledge that the race was, at one point, extremely close (at the time of writing, it isn't, but what's to say it won't again in the next three weeks.) They're going to have to recognize that this was, in large part, because whatever Clinton's professionalism and qualifications, and however unfair it might be that she's suffered a decades long smear campaign, even without the smears she was never a great candidate. She represents a centrism and a failure to push for substantive change that is anathema to a significant number of people in the US.
How bad is she? Trump's obvious fascism was not enough to make people vote for her. The entire election has just fallen because he's shown himself to be an unpresidential thug towards women. Not because he advocates violence against his opponents. Not because he has promised to abuse the power of the Presidency to punish and imprison political enemies and journalists. Not because he has promised to make it easier to punish those who criticize the rich and powerful. Not because he has scapegoated immigrants for the problems of Americans. Not because he has smeared as rapists, murderers, and terrorists, immigrants and members of minority religions. Not because he has enlisted and cultivated the support of foreign anti-American despots to his presidential campaign. And not because he's been blatant about it, proposing simplistic solutions to complex problems without details or fact based arguments to back them up.
No Presidential candidate in recent history has been so obviously opposed to the values America fought in WW-II to defend, and yet that candidate got close enough to the Democratic candidate to seriously threaten her chances of winning. The Democrats, by any reasonable measure, put up a terrible candidate.
Republicans are going to have to acknowledge that the experiment started in the early nineties (perhaps earlier) to discredit and illegitimatize Democratic Party Presidents has caused unbelievable damage to the country, and destroyed both parties in the process. From Rush Limbaugh's early beginnings as describing the Clinton Regime as an "occupation", to the scorched Earth treatment of the Obama Presidency by Republican legislators, the end result wasn't a stronger Republican party, but a party that lost control of itself enough to find itself under the control of the first Fascist major party presidential candidate in living memory.
That means Republicans will have to bite the bullet and work with Clinton if and when she gets into office. Both parties will need to find points of agreement, areas where ordinary people will benefit from action, from infrastructure to improvements in healthcare, That's not to suggest they should hide their differences, but the last eight years in particular have been completely ridiculous, with Republicans failing to support stimulus and infrastructure improvements they clearly have no problems with, simply because Obama might get credit.
If you want to get good, honest, respected people to stand for leadership of government, it's a good idea to make that government good, honest, and respected to begin with. It isn't.
Whether either side will do any of this is.... I'll be happy if they do, but it really requires both parties to understand what just happened, and to change direction. I'm not sure they can.