I’m glad you’re interesting in contributing! Take a look at Discourse Development Contributor Guidelines, which also has some links to dev-install instructions for various operating systems.
If you’re running into a specific error searching this community can help, and if you can’t find the answer be sure to include all the relevant details when you start a new topic.