How to add modules to core from source

I am still new to openmrs. I am running the core jetty server but have no modules installed. I get a message saying “If you are a developer, you can access the REST API”, but I think I need to add the “OpenMRS REST Web Services Module”? If I clone this REST module project and build it how can I add it to core ?