Big hint: Search for "chicken coop door"
In reality, you want a "stopped" indicator too?
it is loosely related to "power automotive door locks" too.
The "motor interface" without limits is relatively easy. Use of DPDT relays might help with the indicators.
Take two SPDT contact set from two different relays. Put the common contacts to the motor. One on each side.
Now take the NC (Normally Closed) contact and put them to ground.
So, with the relays de-energized, the motor is shorted. It's important later, because a moving DC motor is generator and shorting a generator makes the motor stop real fast.
Now, connect the NO terminals to the DC supply. Nothing will happen yet.
Now what happens:
1) No relays energized or both relays energized = brake
2). One relay energized = motor moves in one direction
3) The other energized = motor moves in the opposite direction.
Knowing a little bit about the motor and voltages will help here., but that's the starting point.
The limit switches typically can't handle the motor current and sometimes they have a hard time handing the relay current.
Quiesent current issues are another problem. i.e. Little or no current consumption except when moving.
Diode protection around the relay coils might be needed.
You have to decide if the system requires a closure to ground or a closure to positive to move.