Is it appropriate to do a logistic regression where both the dependent and independent variables are binary? for example the dependent variable is 0 and 1 and the predictors are contrast coded variables -1 and 1 ?
There is no reason not to do this, but two cautionary thoughts:
Keep careful track during the analysis of which is which. In large projects, it can be easy to get lost, and produce errant results.
If you choose to report regression estimates, rather than odds ratios, make your coding scheme clear in your report, so readers don’t produce inaccurate ORs on their own assuming they were both coded 0,1.
May seem basic, but I’ve seen both problems make it into published papers.