In this post, weโll explore how to use GitHub Copilot to generate Java code and unit tests with minimal manual input. Using a real-world exampleโa mortgage calculator serviceโyouโll see how Copilot can help write both the core logic and the corresponding unit tests. Whether youโre new to AI-assisted development or curious about Copilotโs capabilities in a Java environment, this tutorial will give you practical insight into how it worksโand where human oversight still matters.
Implementing GitHub OAuth with NextAuth.js
In my last post, โIntroduction to Web Apps with Next.jsโ, we went through the steps of setting up a new Next.js project, customizing a landing page, and implementing a very simple web application. In this post, weโll implement an Open Authentication (OAuth) based Single Sign-On (SSO) API within Next.js using NextAuth.js. Weโll be using GitHub as our provider, but the steps here are very similar for other platforms, such as Google or Discord. This will allow us to place portions of our website behind a login screen, restricting access to certain content or APIs for anonymous visitors.


