Nextcorp is a comprehensive toolkit designed to cater to the diverse needs of businesses and enterprises. Developed using Next.js, Nextcorp boasts a modern and versatile framework that seamlessly integrates essential pages, ensuring a cohesive user experience.
From showcasing your products and services to engaging with your audience through a dynamic blog page, Nextcorp provides the perfect platform to elevate your online presence. With its sleek design and intuitive navigation, visitors will be effortlessly guided through your site, enhancing their overall experience.
/
: Home page showcasing company information and featured products/services./blog
: Displays a list of blog posts./login
: Login page for users to authenticate./register
: Registration page for new users./blog/slug-of-blog
: Displays a specific blog post identified by its slug./refresh
: Endpoint to refresh JWT token./revoke
: Endpoint to revoke the refresh token.Light Theme | Dark Theme |
---|---|
While Elysia.js is a relatively new framework, it boasts a robust Unit Testing capability when paired with the Bun runtime. Leveraging the Bun runtime, which incorporates a built-in test runner accessible through the bun:test module, developers can easily conduct unit tests akin to Jest.
To ensure the reliability and stability of Nextcorp, I meticulously crafted a comprehensive suite of unit tests. These tests cover a spectrum of scenarios that Nextcorp’s API might encounter, including various HTTP status codes such as 200, 401, 404, 409, and 500. Below, you’ll find details regarding the test endpoint, descriptions, and associated status codes.
Bun’s test runner supports built-in code coverage reporting. This makes it easy to see how much of the codebase is covered by tests and find areas not currently well-tested. I write the bunfig.toml file to enable this feature. This will print out the coverage reporting for me as below.
Created by Minh Tran