OhBonsai / nocalhost

Nocalhost is Cloud Native Dev Environment.

Home Page:https://nocalhost.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nocalhost

api-docker nhctl Go Report Card LICENSE

Nocalhost is cloud native development environment. Check https://nocalhost.dev for more details.

The term "Nocalhost" originates from No localhost.

Its vision is that in the cloud era, developers use remote cloud native development environments to complete development instead of configuring developing, debugging and testing environments on local computers.

You can use Nocalhost to:

  • deploy complex microservice applications to cloud environment.
  • develop components(services) quickly with a prepared configuration.
  • share development environment within teams.
  • accelerate the feedback loop of "coding-building-running--debugging-testing-coding".

Why we make Nocalhost?

As microservices become more and more popular and the number of microservices increases, containerization technology becomes a good solution to standardize the runtime environment.

Kubernetes is a typical microservice runtime solution. But developers who build application based on Kubernetes are facing painful problems. Such as:

  • In order to develop a certain microservice, it is necessary to start the entire environment and all microservices, which requires high performance of local resources, poor experience and high cost;
  • Developers often only focus on the services they are responsible for. With the continuous iteration of services and configurations, it is more and more difficult for the machine to start the new and complete development environment;
  • Every time the code changes, the process of build image -> push image -> pull image -> restart application (Pod) is required, the feedback loop of development is extremely long;
  • When two or more developers are involved in remote collaboration and joint debugging, they need a flatten network(VPN is too complicated to configure).

How to solve?

Based on Kubernetes, Nocalhost provides several features:

  • Quickly create an application development environment based on Kubernetes Namespace isolation for each team member, which promises development and debugging will not affect each other;
  • Cloud native experience microservice development and debugging: No needs to start any microservices on local machine. Any code changes will be synchronized immediately to the remote Pod without rebuilding images.
  • Starting services orderly. Such as: "Mysql (UP & Init) -> RabbitMQ (UP) -> Server A (UP) —> Server B (UP)"

Nocalhost components

Nocalhost Server

  • Nocalhost API
  • Nocalhost Web

Nocalhost Server manages applications, clusters, users and authorizations.

Nocalhost Dep

Nocalhost Dep is an Agent running in Kubernetes which controls the starting order of services.

nhctl

nhctl is a command line tool running locally. It controls status of applications and services.

IDE Plugin

Focusing on better experiences, Nocalhost provides developers with IDE Plugins to connect Cloud and local IDE directly.

Quick Start

https://nocalhost.dev/getting-started/

Developing

build nhctl

make nhctl

build Api Server

make api

build nocalhost-dep

make nocalhost-dep

Api Docs

swag init -g cmd/nocalhost-api/nocalhost-api.go

Then you can visit: http://127.0.0.1:8080/swagger/index.html

Contribution

🔥We're Hiring

If you are interested with Nocalhost, please send resume to email: wangweimax@coding.net(Accept Remote Work)

About

Nocalhost is Cloud Native Dev Environment.

https://nocalhost.dev

License:Apache License 2.0


Languages

Language:Go 92.0%Language:Mustache 3.8%Language:Shell 2.9%Language:Dockerfile 0.6%Language:Inno Setup 0.2%Language:Smarty 0.2%Language:Makefile 0.2%Language:Ruby 0.1%