Skip to content

Introduction to Setting Up Your Backend Development Environment

Setting up your backend development environment is the foundational step towards building reliable and scalable web applications. Whether you're a seasoned developer or just starting out, having a well-configured environment is essential for efficient coding, collaboration, and project success.

Step 1 : Setting Up WiFi and VPN

To ensure seamless connectivity and collaboration, follow these steps to set up WiFi and VPN access:

WiFi Setup

  1. Retrieve WiFi MAC Address:
    • Open the command prompt on your computer.
    • Run the command getmac /v to display the MAC address of your WiFi adapter.
    • Share the WiFi MAC address with your IT Support team to facilitate connection to the network.

VPN Setup

  1. Download and Install TeamViewer:

    • Download TeamViewer from the official website and follow the installation instructions.
    • TeamViewer enables remote access and support from IT professionals for VPN setup and troubleshooting.
  2. Contact IT Support for VPN Configuration:

    • Reach out to your IT Support team to request VPN setup.
    • IT Support will guide you through the setup process and ensure secure access to the network.

By following these steps and collaborating with your IT Support team, you can set up WiFi and VPN access efficiently, enabling you to work remotely and access network resources securely.

Step 2 : Setting Up and Configuring Package Sources

Steps to Add and Configure Package Source in Rider:

  1. Open Rider: Launch JetBrains Rider IDE on your computer.

  2. Access Settings: Navigate to the "Settings" or "Preferences" menu. You can typically find this under the "File" menu on Windows/Linux or "Rider" menu on macOS.

  3. Manage NuGet Sources: In the settings window, locate and select the "NuGet" option from the sidebar. This will display settings related to NuGet package management.

  4. Add New Package Source: Look for the "Package Sources" section within the NuGet settings. Click on the "Add" button to add a new package source.

  5. Enter Package Source Details:

  6. Optional Settings: Depending on your requirements, you may configure additional settings such as Authentication (if the package source requires credentials), Priority, and whether to use HTTP or HTTPS for package retrieval.

  7. Save Changes: Once you've entered the required information, click on the "OK" or "Apply" button to save the new package source.

  8. Verify Configuration: Ensure that the new package source appears in the list of package sources and is enabled for package retrieval.

  9. Restart Rider (if necessary): In some cases, Rider may require a restart for the changes to take effect. If prompted, restart the IDE.

  10. Test Package Retrieval: Try adding a NuGet package to your project and verify that Rider can retrieve it from the newly configured package source.

Steps to Add and Configure Package Source in Visual Studio:

  1. Open Visual Studio: Launch Visual Studio IDE on your computer.

  2. Access Options: Go to the "Tools" menu and select "Options" (or "Visual Studio" > "Preferences" on macOS).

  3. Manage NuGet Package Sources: In the Options window, navigate to "NuGet Package Manager" settings. You can typically find this under "NuGet Package Manager" or "NuGet Package Manager" > "Package Sources".

  4. Add New Package Source: Click on the "Add" button to add a new package source.

  5. Enter Package Source Details:

  6. Optional Settings: Configure additional settings such as Authentication (if required), Protocol (HTTP/HTTPS), and whether to store credentials in the NuGet configuration files.

  7. Save Changes: Once you've entered the required information, click on the "OK" or "Apply" button to save the new package source.

  8. Verify Configuration: Ensure that the new package source appears in the list of package sources and is enabled for package retrieval.

  9. Restart Visual Studio (if necessary): In some cases, Visual Studio may require a restart for the changes to take effect. If prompted, restart the IDE.

  10. Test Package Retrieval: Try adding a NuGet package to your project and verify that Visual Studio can retrieve it from the newly configured package source.

Step 3 : Install Python and Kafka SDK

To proceed with Python and Kafka SDK installation, follow these steps:

1. Download and Install Python

Ensure you have Python installed on your system by following these steps:

  • Visit the Python official website to download the latest version of Python.
  • Run the downloaded installer and follow the installation wizard's instructions.
  • Verify the installation by opening a command prompt and typing python --version. You should see the installed Python version displayed.

2. Install Python Kafka SDK

Once Python is installed, proceed with installing the Kafka SDK for Python by following these steps:

  • Open a command prompt.
  • Run the command pip install kafka-python to install the Kafka Python client library.
  • Wait for the installation to complete. You should see a message indicating successful installation.

By following these steps, you will have Python installed on your system along with the Kafka SDK, enabling you to develop applications that interact with Kafka clusters seamlessly.

Step 4 : Install Templates

To set up your development environment with the necessary templates, follow these steps:

1. Install .NET Core 3.1 and .NET 6.0

  • Download and install .NET Core 3.1 from the official website.
  • Download and install .NET 6.0 from the official website.
  • Download and install .NET 8.0 from the official website.

2. Uninstall .NET 7 and Higher (Optional)

If you have .NET 7 or higher installed, follow these steps to uninstall:

  • Go to Settings -> Apps & Features.
  • Find ".NET SDK 7..." in the list of installed programs and uninstall it.

3. Install Credential Manager Credential Provider

For Windows:

  • Open PowerShell.
  • Run the following command:
bash
iex "& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) } -AddNetfx"

For Rider on Mac, Linux, and Windows:

  • Run the following command:
bash
 sh -c "$(curl -fsSL https://aka.ms/install-artifacts-credprovider.sh)" 
- ```


### 4. Configure NuGet Credential Provider in Rider

- Open Rider and go to Configuration -> Settings -> Build Execution Deployment -> Nuget.
- Under Credential Provider, set it to option 3.

### 5. Check Installed .NET SDKs

Run the following command to verify installed .NET SDKs: 
```bash 
dotnet --list-sdks

API Template

For .NET 3.1:

bash
dotnet new --install Hubtel.Templates.Api.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 6:

bash
dotnet new --install Hubtel.Templates.V6.Api.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 8:

bash
dotnet new install Hubtel.Templates.V8.Api.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

KafkaHost Template

For .NET 3.1:

bash
dotnet new --install Hubtel.Templates.KafkaHost.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 6:

bash
dotnet new --install Hubtel.Templates.V6.KafkaHost.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 8:

bash
dotnet new install Hubtel.Templates.V8.KafkaHost.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

Unit Test Template

For .NET 3.1:

bash
dotnet new --install Hubtel.Templates.UnitTests.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 6:

bash
dotnet new --install Hubtel.Templates.V6.UnitTests.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 8:

bash
dotnet new install Hubtel.Templates.V8.UnitTests.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

Programmable Services Template

For .NET 3.1:

bash
dotnet new --install Hubtel.Templates.ProgrammableServicesBasic.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 6:

bash
dotnet new --install Hubtel.Templates.V6.ProgrammableServicesBasic.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 8:

bash
dotnet new install Hubtel.Templates.V8.ProgrammableServicesBasic.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

Background Job Template

For .NET 3.1:

bash
dotnet new --install Hubtel.Templates.BackgroundJob.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 6:

bash
dotnet new --install Hubtel.Templates.V6.BackgroundJob.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

For .NET 8:

bash
dotnet new install Hubtel.Templates.V8.BackgroundJob.Pack --nuget-source https://pkgs.dev.azure.com/hubtel/_packaging/hubtel/nuget/v3/index.json --interactive

These steps will ensure that you have the necessary templates installed for your backend development projects.

Step 5 : Install PostgreSQL and DBeaver

To install PostgreSQL and optionally DBeaver, follow these steps:

1. Install PostgreSQL

  • Download and install PostgreSQL from the official website.
  • During installation, set the username to "postgres" and the password to "postgres" (or any preferred credentials).
  • Follow the installation wizard's instructions to complete the installation process.

2. Install DBeaver (Optional)

DBeaver is a universal database tool for developers and database administrators. If you prefer using DBeaver for managing databases, follow these steps:

  • Download and install DBeaver from the official website.
  • Follow the installation wizard's instructions to complete the installation process.

Step 6 : Install Docker

To install Docker, follow these steps:

1. Download and Install Docker

  • Download and install Docker from the official website.
  • Follow the installation wizard's instructions to complete the installation process.

2. Configure Docker with WSL 2

To enable WSL 2 for Docker, follow these steps:

  1. Open PowerShell as an Administrator.
  2. Run the following command to enable WSL 2:
bash
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  1. Run the following command to enable Virtual Machine Platform:
bash
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  1. Run the following PowerShell command to enable Virtual Machine Platform:
bash
Enable-WindowsOptionalFeature -Online –FeatureName VirtualMachinePlatform –NoRestart
  1. Set WSL default version to 2 by running:
bash
wsl --set-default-version 2

Alternatively, you can run the following command to install WSL and set default version to 2:

bash
wsl --install

By following these steps, you will have PostgreSQL and Docker installed on your system, optionally with DBeaver for database management.

Was this page helpful?

Happy React is loading...