GitHub intern project: Building a Learning Lab API
Check out our GitHub Internship series brought to you by our 2019 summer interns. In this post, Philip Dumaresq shares his experience building a Learning Lab API.
![](https://github.blog/wp-content/uploads/2019/08/blog_hero_summer-interns.png?resize=1200%2C630)
The GitHub Internship Program welcomes its summer 2019 students as we celebrate four years. After 5,000 applicants and a tremendous amount of planning, our interns are here and ready to tell you about their experiences with all things GitHub. In this blog series, students share their insight about using the GitHub Student Developer Pack, working with GitHub Learning Lab, and more. Check out the series and come back for more intern posts.
Philip Dumaresq is a student at Concordia University in Montreal, where he studies Computer Science. He joined GitHub in summer 2019 as an intern on the Learning Engineering team. In this post, Philip shares his experience building a Learning Lab API.
Connecting with Learning Lab outside the GitHub platform
The barrier to entry for programming can be difficult to overcome. Fortunately, there are many teachers and organizations that produce fantastic educational content to help learners get started. This summer, I built the first iteration of a Learning Lab API to allow course authors to leverage Learning Lab outside the GitHub platform. With this API, developers can embed a Learning Lab course into another website, find problems in their own courses to improve them, and more.
API architecture and design is a subject that I’ve long wanted to explore, and this was the perfect opportunity for me to develop my skills in that area while learning more about system architecture. By building this API, I would also learn how to take existing functionalities and break them down for a more abstracted system. Most importantly, I wanted individuals to be able to streamline their course-writing process and create a better learning experience by providing access to Learning Lab workflows outside of GitHub.
Building the API
I built a couple components for the API, which included an informative error handler to manage different HTTP request errors, as well as a simple web page for generating API keys for authentication. Before this project, I was unfamiliar with authentication using personal access tokens. Since I didn’t have much experience with application security, I knew how to hash a password to store it in a database on a fundamental level, but I didn’t understand how that process would translate over to personal access tokens. Luckily, after working with the Application Security team, the process was easier than I expected.
Creating straightforward and user-friendly documentation is an essential skill to have when working on a user-facing product. With this in mind, I spent time writing external documentation on how to use the API and what each endpoint returns.
Lessons learned
Before this internship, I wasn’t familiar with working on a team or having to deal with the involvement of many different stakeholders with differing opinions and priorities. However, by having team members review my code and provide feedback, I was able to improve my work on the API and my overall skills as a developer.
Another important lesson I learned is to, “fall in love with the problem, not the solution.” This concept means that it isn’t enough to focus only on building a solution. Rather, you should take all the different facets of the problem into account, build a general plan of attack, and not be afraid to start over—these things are equally important throughout the entire process. Once I started focusing on incremental development, the process to build the API went much smoother.
Written by
Related posts
![](https://github.blog/wp-content/uploads/2024/05/GitHub-for-beginners.png?resize=400%2C212)
Beginner’s guide to GitHub: Merging a pull request
As part of the GitHub for Beginners guide, learn how to merge pull requests. This will enable you to resolve conflicts when they arise.
![](https://github.blog/wp-content/uploads/2024/08/github-cli-header.png?resize=400%2C212)
How to level up your Git game with GitHub CLI
Using Git in the CLI can improve your development speed and power. Here are our top eight commands for using GitHub via your command line.
![](https://github.blog/wp-content/uploads/2024/05/GitHub-for-beginners.png?resize=400%2C212)
Beginner’s guide to GitHub: Creating a pull request
As part of the GitHub for Beginners guide, learn how to create pull requests. This will enable you to suggest changes to existing repositories.