Installation
Linux
Update system with apt
sudo apt install openjdk-11-jdk -y
# Get release from Github
wget https://github.com/alibaba/nacos/releases/download/2.4.0.1/nacos-server-2.4.0.1.tar.gz
tar -xzvf nacos-server-2.4.0.1.tar.gzWindows
Install openjdk
.\startup.cmd -m standaloneDocker
Install docker
# Clone Nacos for Docker
git clone git@github.com:nacos-group/nacos-docker.git 'nacos-docker'
docker-compose -f .\nacos-docker\example\standalone-derby.yaml -p nacos up -dUsage
C# Application
dotnet new list
dotnet new webapi -n NacosExample
cd .\NacosExample\Download .gitignore template
Initialize git
# Stage and commit
git add -A
git commit -m "Initial commit"
# Add packages
dotnet add package nacos-sdk-csharp
dotnet add package nacos-sdk-csharp.AspNetCore
dotnet add package nacos-sdk-csharp.Extensions.Configuration