When things have gone wrong like this, draw a line under it, that was yesterday and what's done is done - don't beat yourself up about it.
Start again today, take it one day at a time, one meal at a time if needs be and give yourself a big pat on the back, no matter how small the achievement...