NRF51822 ble remote

I try to build a BLE remote control with some buttons and a bare nrf51822 chip running on battery. It's a pretty basic setup setup and I wonder if there is a code example to start with? So far I only found examples that are based on a existing eval board but on my bench I got the chip directly connected to buttons and so far I can't figure out how to get it going.

Related