Skip to content

A Next.js API for tracking things you plant in your garden.

Notifications You must be signed in to change notification settings

ngrok-samples/nextjs-rancher-ngrok-api

 
 

Repository files navigation

Build an API in Next.js and deploy with Kubernetes, Rancher, and ngrok

This project showcases how to create a simple API, used for tracking plants in your garden, with Next.js. The API uses the new Route Handlers available in Next.js 13 and MongoDB for storage.

This sample project is used for a forthcoming post on the ngrok blog: Build an API in Next.js and deploy with Kubernetes, Rancher, and ngrok.

This repository also contains deployment files—notably the Dockerfile and deployment.yaml Kubernetes manifest—to containerize the API and deploy it to a Rancher-managed Kubernetes cluster, with ngrok's open source Kubernetes ingress controller handling public traffic, load balancing, authentication, observability, and more. Find more details on that process in the associated blog post.

Contact us

If you have any questions about this sample code, the blog post, or ngrok itself, please reach out by creating an issue. You can also reach the ngrok team on X (aka Twitter) @ngrokhq or LinkedIn, or joining the community on Slack.

About

A Next.js API for tracking things you plant in your garden.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.7%
  • CSS 11.1%
  • Dockerfile 6.6%
  • JavaScript 3.6%