A primary source is the first place research appears. In sciences that means published journal articles (also called papers). Researchers do research and when they have some results they write them into a paper and publish it in a journal or a repository. In Computer Science, the original code behind the research can also be considered a primary source in the same way that Hamlet is a primary source to someone studying English Literature.
The purpose of reading the primary source is to get the original data, not someone else's interpretation of the data (a secondary source). Books, encyclopedias, dictionaries, review articles, and textbooks are all secondary sources because they have already processed the information in the primary sources for you.
A scholarly research article is an article that has been published based on research data. This is not to be confused with the regular kind of article you'd find in a newspaper or magazine. Scholarly sources are often peer-reviewed. Peer-reviewed means that when a scientist sent their article to a journal to get it published, other scientists (their peers) read the article and comment on it. The idea behind peer-review is that other scientists can judge what is worth publishing or not. A journal without peer review would accept any articles submitted or would leave the choice up to an editor.