teleren/devto huggingface dataset:
Installing Docker in .NET 8 and React Projects
Tags: webdev, react, dotnet, docker
Published: 2024-02-05 11:39:06

## **Step 1: Install Docker**
First we have to download and install Docker on our machine. We will download it from the official Docker website (https://www.docker.com/).

## **Step 2: Create the .NET and React Projects**
Create a new .NET 8 project and a new React project using the following commands in the terminal:


**Create .NET project**
```powershell
dotnet new web -o MyDotNetProject
```


**Create React project**
```powershell
npx create-react-app my-react-project
```

This will generate a .NET 8 project in a folder named MyDotNetProject and a React project in a folder named my-react-project.

## **Step 3: Create the Dockerfile**
In the root of each project, create a new file called Dockerfile with no extension. This file defines how Docker builds your applications.

**For .NET 8 application:**


```dockerfile
# Base image
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80

# Build stage
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["MyDotNetProject/MyDotNetProject.csproj", "MyDotNetProject/"]
RUN dotnet restore "MyDotNetProject/MyDotNetProject.csproj"
COPY . .
WORKDIR "/src/MyDotNetProject"
RUN dotnet build "MyDotNetProject.csproj" -c Release -o /app/build

# Publish stage
FROM build AS publish
RUN dotnet publish "MyDotNetProject.csproj" -c Release -o /app/publish

# Final stage
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "MyDotNetProject.dll"]
```


**For React application:**


```dockerfile
# Base image
FROM node:14 AS build
WORKDIR /app

# Install dependencies
COPY package*.json ./
RUN npm install

# Build the app
COPY . .
RUN npm run build

# Final image
FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
```

## **Step 4: Build and Run the Docker Containers**
Build and run your .NET and React applications in Docker containers:

**For .NET project:**


```powershell
cd MyDotNetProject
docker build -t mydotnetproject .
docker run -p 8080:80 mydotnetproject
```

**For React project:**


```powershell
cd ../my-react-project
docker build -t myreactproject .
docker run -p 3000:80 myreactproject
```

Access your applications at http://localhost:8080 and http://localhost:3000 respectively.

# **Docker Commands You Might Need:**
## **Viewing Docker Containers**
To view all running Docker containers:


```powershell
docker ps
```

## **To view all containers (including non-running ones):**


```powershell
docker ps -a
```

## **Stopping a Docker Container**
Stop a Docker container using its ID or name:


```powershell
docker stop <container_ID_or_name>
```

## **Removing a Docker Container**
Remove a Docker container (after stopping it):


```powershell
docker rm <container_ID_or_name>
```

## **Viewing Docker Images**
View all Docker images on your machine:


```powershell
docker images
```

## **Removing a Docker Image**
Remove a Docker image:


```powershell
docker rmi <image_ID>
```

Make sure to stop containers before removing them.
Miraculous Solutions: Unveiling Extraordinary Answers to Everyday Challenges
Tags: devops, php, webdev, programming
Published: 2024-02-05 11:34:47

[Miracuves Solutions](https://miracuves.com/) is a dynamic and forward-thinking company that specializes in delivering cutting-edge solutions across diverse industries. Committed to achieving miraculous outcomes, the company harnesses advanced technologies and a team of skilled professionals to address the unique challenges faced by its clients.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qncdk3z53cfpoc5iri44.png)

At the heart of Miracuves Solutions lies a dedication to excellence, manifested through a comprehensive range of services encompassing software development, data analytics, artificial intelligence, and more. The company takes pride in its ability to craft tailored, transformative solutions that not only meet but exceed the expectations of its clients.

[Miracuves Solutions](https://miracuves.com/) distinguishes itself with a proactive approach, staying abreast of technological advancements to ensure clients benefit from the latest and most effective tools available. The company's team of experts are not just problem-solvers but innovators, continually exploring new possibilities and opportunities for improvement.
Beatsurfing – RANDOM (Windows)DOwnload
Tags: vst, webdev, javascript
Published: 2024-02-05 11:09:04


Download link:https://pluginsforest.com/product/beatsurfing-random-windows/
Embark on an audio adventure like never before with Beatsurfing RANDOM for Windows. This cutting-edge software transcends traditional music production, offering a unique and intuitive interface that transforms your creativity into a dynamic, ever-evolving sonic journey.

Unleash the Power of Serendipity: Beatsurfing RANDOM is not just a music-making tool; it's a playground for spontaneous artistic expression. Break free from the constraints of conventional music software and let randomness be your guide. Explore uncharted musical territories, discover unexpected harmonies, and witness the magic of serendipitous soundscapes.

Intuitive Design, Limitless Possibilities: Designed with simplicity and innovation in mind, Beatsurfing RANDOM for Windows boasts an interface that feels like an extension of your musical intuition. Effortlessly navigate through an array of customizable features, experiment with diverse sound modules, and effortlessly sculpt your sonic masterpiece.

Dynamic Beats on Demand: Say goodbye to static beats and embrace the dynamic rhythm of Beatsurfing RANDOM. Generate intricate, ever-changing patterns that breathe life into your compositions. Whether you're a seasoned producer or a budding musician, this software adapts to your style, offering an endless array of rhythmic possibilities.

Seamless Integration: Beatsurfing RANDOM seamlessly integrates with your Windows environment, ensuring a smooth and hassle-free experience. Dive into the world of spontaneous creativity without any technical barriers—download, install, and start creating within minutes.

Ignite Your Imagination: Elevate your music production game with Beatsurfing RANDOM. Break free from the ordinary, embrace the unexpected, and redefine your sonic identity. Download the Windows version now and embark on a musical odyssey where creativity knows no bounds.

Note: Beatsurfing RANDOM is optimized for Windows operating systems. Ensure your system meets the minimum requirements for an optimal experience. Unleash the power of randomness and let your music evolve organically with Beatsurfing RANDOM for Windows—your gateway to a world of limitless sonic possibilities."
Mobile Tyre Fittings Slough
Tags: webdev, beginners, assistence, recovery
Published: 2024-02-05 11:07:01



In the bustling town of Slough, where the daily grind often involves navigating busy roads, unexpected vehicle issues like a flat tyre can be a significant source of inconvenience. Recognizing the need for on-the-spot solutions, "247 Slough Car Recovery" has expanded its services to include efficient and convenient **[Mobile Tyre Fittings Slough](https://247sloughcarrecovery.co.uk/mobile-tyre-fittings-slough/)** , making them a comprehensive breakdown recovery solution provider.

**The Significance of Mobile Tyre Fittings**

A flat tyre can occur at any time, disrupting your journey and causing delays. When faced with such a situation, having access to a reliable mobile tyre fitting service becomes crucial. It eliminates the need for towing and allows you to get back on the road quickly and safely.

**247 Slough Car Recovery - Your On-the-Go Tyre Fitting Partner**

[247 Slough Car Recovery ](https://247sloughcarrecovery.co.uk/)has established itself as a versatile breakdown recovery service provider, and their Mobile Tyre Fitting service exemplifies their commitment to providing holistic assistance to drivers in Slough. Here's why their mobile tyre fitting service is gaining popularity:

**24/7 Availability**

Much like their other services, 247 Slough Car Recovery's Mobile Tyre Fitting operates around the clock. Whether it's the middle of the night or during peak traffic hours, assistance is just a phone call away.

**On-Site Convenience**

The mobile tyre fitting slough  is designed for on-the-spot convenience. Instead of having to tow your vehicle to a garage, the experienced technicians from 247 Slough Car Recovery come to your location, saving you time and effort.

**Wide Range of Tyres**

The service is equipped to handle a diverse range of vehicles, offering a wide selection of tyres suitable for different makes and models. This ensures that you get the right replacement tyre quickly and efficiently.

**Professional Expertise**

The technicians at 247 Slough Car Recovery are trained to handle various tyre-related issues, from puncture repairs to full tyre replacements. Their expertise ensures that the job is done accurately, getting you back on the road safely.

**Efficient and Timely Service**

With a focus on efficiency, the mobile tyre fitting service aims to minimize downtime for drivers. Prompt arrival, quick assessments, and timely replacements are the hallmarks of this service.

For drivers in Slough, experiencing a flat tyre no longer needs to be a major roadblock, thanks to the **[Mobile Tyre Fitting service ](https://247sloughcarrecovery.co.uk/mobile-tyre-fittings-slough/)**offered by 247 Slough Car Recovery. With their dedication to 24/7 availability, on-site convenience, and professional expertise, they provide a comprehensive solution for tyre-related breakdowns. The next time you find yourself with a flat tyre in Slough, trust 247 Slough Car Recovery to deliver swift and reliable on-the-go tyre fitting services, ensuring a hassle-free journey.
Jump Start service slough
Tags: accidentalcar, webdev, roadassiste, beginners
Published: 2024-02-05 11:03:35



Facing a dead battery or a vehicle that refuses to start is a common yet frustrating experience for drivers. In the town of Slough, where daily commuting is a part of life, having access to a reliable **[jump start service slough](https://247sloughcarrecovery.co.uk/car-and-van-jump-start-service-slough/)**  is essential. One prominent service provider that stands ready to assist is "247 Slough Car Recovery."

The Importance of Jump Start Services

A dead battery can happen unexpectedly, leaving drivers stranded and potentially causing disruptions to their daily plans. Having a dependable jump start service is crucial in such situations, as it provides a quick solution to get the vehicle back on the road without the need for towing.

247 Slough Car Recovery - Your Trusted Jump Start Partner

247 Slough Car Recovery has earned a reputation as a reliable and efficient service provider, particularly in the realm of jump start assistance. Their team of skilled professionals understands the urgency of jump start situations and is dedicated to providing prompt and effective solutions to motorists in and around Slough.

Key Features of 247 Slough Car Recovery's Jump Start Service

24/7 Availability

True to their commitment to customer service,[ 247 Slough Car Recovery ](https://247sloughcarrecovery.co.uk/)operates around the clock, ensuring that drivers can access assistance whenever they need it, be it day or night.

Rapid Response Time

Understanding the time-sensitive nature of jump start situations, the team at 247 Slough Car Recovery prides itself on its swift response times. They aim to reach the location promptly, minimizing the inconvenience for the stranded driver.

Professional Expertise

The technicians at 247 Slough Car Recovery possess the expertise to handle jump start procedures efficiently. They are trained to assess battery issues, provide the necessary jump start, and offer guidance on potential battery-related issues.

Equipped Service Vehicles

247 Slough Car Recovery's fleet of service vehicles is equipped with the necessary tools and equipment to perform jump starts on various types of vehicles, ensuring a comprehensive solution for drivers in need.

Customer-Focused Approach

The company takes pride in its customer-focused approach, prioritizing the satisfaction and peace of mind of drivers in distress. The friendly and professional team strives to make the jump start experience as smooth as possible.

For drivers in Slough, encountering a dead battery no longer needs to be a source of stress, thanks to the reliable **[Jump Start service slough](https://247sloughcarrecovery.co.uk/car-and-van-jump-start-service-slough/)** provided by 247 Slough Car Recovery. With their commitment to 24/7 availability, rapid response times, and professional expertise, they stand as a trusted partner for motorists in need of quick and efficient jump start assistance. Next time your vehicle's battery needs a boost in Slough, count on 247 Slough Car Recovery to get you back on the road.
Rails 7.1 Enum Validations Under 60 seconds
Tags: webdev, rails, ruby, programming
Published: 2024-02-05 11:00:58

60 second vide: https://youtu.be/LOlMF4_EUCk

For readers out there:
https://sparkrails.com/rails/2024/02/03/rails-7.1-enum-validation.html
Music Monday — What are you listening to? (Homeland Edition II 🏠)
Tags: watercooler, music, discuss
Published: 2024-02-05 11:00:00

_cover image source: [Giphy](https://giphy.com/gifs/dubstep-gifs-dubstepgifs-3oxQNlEF6yweHaQUNy)_

**That's right! We're bringing it back home again. The plan for this one is the same as [last time](https://dev.to/music-discussions/music-monday-what-are-you-listening-to-homeland-edition-14nb)... I'd like everybody to share music from their homeland. Could be a band from the same city you were born in, or maybe it's a genre of music that's popular in your home country. Perhaps it's a pop song about the place that you currently live, or just a tune that makes you feel at home for a special reason. All are fair ways of thinking about it! Please drop in some songs that remind you of home and let us know why they do.**

![A graphic of Fela Kuti playing saxophone. There are three images of him playing sax on top of a background that is red, green, and yellow.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q6ia8gio1mup2wj5po3l.gif)

***

## How we do 

In this weekly series, folks can chime in and drop links to whatever it is they've been listening to recently + browse others' suggestions. You can follow the suggested genre if you'd like, but don't feel confined to it; you're free to suggest whatever you wanna. 🙌  

If you're interested in having other discussions about music, consider following the aptly named [#music discussions](https://dev.to/music-discussions) organization.

{% embed https://dev.to/music-discussions %}  

***

Share some music with me that reminds you of home! _Note: you can embed a link to your song using the following syntax `{% embed https://... %}`. This should work for most common platforms!_

Looking forward to listening to y'all's suggestions! 🎶
Vehicle Transportation Slough
Tags: beginners, recovery, assistence, webdev
Published: 2024-02-05 10:59:36



[Vehicle transportation slough ](https://247sloughcarrecovery.co.uk/vehicle-transportation-slough/)services play a vital role in today's dynamic world, where people often find themselves needing to relocate or transport vehicles for various reasons. In the town of Slough, ensuring a smooth and reliable vehicle transportation service is essential. One notable service provider in this domain is committed to meeting these needs: "Slough Auto Transport."

**The Significance of Vehicle Transportation:**

Whether you are relocating to a new city, purchasing a vehicle from a different location, or participating in an auto show, the need for efficient and secure vehicle transportation can arise at any time. Slough Auto Transport understands the importance of reliable vehicle shipping services and aims to make the process seamless for its customers.

**Key Services Offered**

Domestic and International Transportation:

Slough Auto Transport caters to both domestic and international vehicle transportation needs. Whether you're moving within the UK or require overseas shipping, their services are designed to meet diverse transportation requirements.

**Comprehensive Fleet**

The company boasts a comprehensive fleet of specialized transport vehicles equipped to handle various types of vehicles, from compact cars to luxury automobiles and motorcycles.

**Door-to-Door Service**

Convenience is a priority for Slough Auto Transport. Their door-to-door service ensures that your vehicle is picked up from the specified location and delivered directly to your destination, eliminating the hassle of additional arrangements.

**Fully Insured Shipments**

Recognizing the value of your vehicle, **[247 Slough Car Recovery ](https://247sloughcarrecovery.co.uk/)**Auto Transport provides fully insured shipments. This gives customers peace of mind, knowing that their vehicle is protected against unforeseen events during transportation.

**Timely and Reliable Delivery**

Understanding the importance of timelines, Slough Auto Transport is committed to delivering vehicles on schedule. Their reliable transportation network ensures that your vehicle reaches its destination promptly.

**Experienced Drivers**

The company prides itself on its team of experienced and professional drivers who are well-versed in handling diverse vehicles. Their expertise ensures the safe and secure transportation of your vehicle.

For those seeking reliable **[vehicle transportation  Slough](https://247sloughcarrecovery.co.uk/vehicle-transportation-slough/)**, Slough Auto Transport emerges as a dependable choice. With a commitment to customer satisfaction, a comprehensive fleet, and a focus on security and efficiency, they stand out as a trusted partner for transporting vehicles locally and internationally. Whether you're moving residences or need your vehicle transported for any other reason, Slough Auto Transport provides a streamlined and reliable solution for your vehicle transportation needs.
Can I migrate my website to Hostinger?
Tags: beginners, programming, tutorial, javascript
Published: 2024-02-05 10:57:36

Yes, you can migrate your website to Hostinger. Hostinger provides tools and resources to assist users in migrating their websites from other hosting providers. The process may vary depending on the type of website you have and the hosting platforms involved. 

**[General steps of Migration](https://dgihost.com/index.php/2024/02/05/migrate-my-website-to-hostinger/)**
Testing tRPC + Express with Jest and Supertest
Tags: trcp, jest, supertest, express
Published: 2024-02-05 10:51:48

---
title: Testing tRPC + Express with Jest and Supertest
published: true
description: Learn how to write unit / integration tests for tRPC on an existing Jest + Express + Supertest setup
tags: trcp, jest, supertest, express
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v3955di5fp6guih57gmi.png


# Use a ratio of 100:42 for best results.
# published_at: 2024-02-05 10:34 +0000
---

Spent quite a bit of time getting tRPC integrated into an existing Express based application. 
This is a great setup because you can run the existing Express middleware (like auth validation, error & metrics tracking) in front of tRPC.

An interesting challenge was getting testing to work. You can't really create a [caller](https://trpc.io/docs/server/server-side-calls) straight to the tRPC router because then you skip all of the Express middleware your production use cases may be using.

We had an existing test setup with Jest + Supertest so I decided to build upon that. 

I was able to use the vanilla tRPC client to write tests by creating a custom link that uses supertest for request calling.

Creating the client looks like this:

```typescript
const client = createTRPCClient<TRPCRouter>({
  links: [supertestLink(app, { trpcPath: '/api/v1/trpc', headers: { Authorization: token } })],
  transformer: superjson,
})

```

And then you can write your tests like this:

```typescript
it('creates a team', async () => {
  const createResult = await client.team.createTeam.mutate({
    name: 'My new team',
  })
  expect(createResult?.name).toBe('My new team')
})
```

You can find the implementation for the `supertestLink` in my repo:

https://github.com/Carnewal/trpc-supertest

If anyone's interested I'll create an npm package for it :-)

Brecht
Breakdown Recovery Slough
Tags: breakdownrecovery, roadassistence, beginners, webdev
Published: 2024-02-05 10:50:30



Every driver understands the anxiety and frustration that comes with a vehicle breakdown, especially when it happens unexpectedly. In the bustling town of Slough, where daily commuting is a way of life, having a reliable [breakdown recovery slough ](https://247sloughcarrecovery.co.uk/breakdown-recovery-slough/) becomes indispensable. One such service provider that stands out is "247 Car Recovery Slough."

**The Importance of Breakdown Recovery**

Breakdowns can occur at any time and often in the most inconvenient locations. Whether it's a flat tire, engine failure, or any other unforeseen issue, a breakdown can quickly turn a routine drive into a stressful situation. This is where professional breakdown recovery services play a crucial role.

**247 Car Recovery Slough - A Trusted Partner:
**
247 Car Recovery Slough has established itself as a trusted and efficient [breakdown recovery service in the Slough](https://247sloughcarrecovery.co.uk/breakdown-recovery-slough/) area. Their team of skilled professionals understands the urgency of providing timely assistance to stranded motorists. With a commitment to customer satisfaction, they offer a range of services tailored to meet the diverse needs of drivers in and around Slough.

**Key Services Offered:**

**24/7 Assistance:**

True to their name, 247 Car Recovery Slough operates round the clock, ensuring that help is just a phone call away, regardless of the time or day.

**Local Expertise:**

Knowing the local roads and conditions is essential in providing effective breakdown recovery. The team at 247 Car Recovery Slough possesses in-depth knowledge of the Slough area, enabling them to reach the scene promptly.

**Prompt Response**

Quick response times are critical during a breakdown. 247 Car Recovery Slough prides itself on its rapid response capabilities, ensuring that stranded motorists don't have to wait long for assistance.

**Variety of Vehicles Towed**

Whether you drive a compact car, an , or a commercial vehicle, 247 Car Recovery Slough has the equipment and expertise to tow a variety of vehicles, ensuring a comprehensive breakdown recovery solution.

**Professionalism and Safety**

The team at **[247 Car Recovery Slough](https://247sloughcarrecovery.co.uk/)** understands the importance of professionalism and safety. Their technicians are trained to handle breakdown situations with efficiency and care, prioritizing both the well-being of the vehicle and its occupants.

For residents and commuters in Slough, having a reliable breakdown recovery slough  like 247 Car Recovery Slough is an invaluable asset. The peace of mind that comes with knowing help is just a phone call away can make all the difference when facing a roadside emergency. With their commitment to excellence, 247 Car Recovery Slough has become a go-to solution for breakdown recovery needs in the Slough area.
Mobiblog
Published: 2024-02-05 10:49:06

Mobiblog Cập nhật phim sex viet 69 mới nhất tại Mobiblog.ac - Các video, lộ clip nóng 18+ được cphang đăng tải liên tục với Mobiblogac phim người lớn.
Địa chỉ: 500 Võ Văn Kiệt, Phường 1, Trà Vinh, Việt Nam
Email: Mobiblogac@gmail.com
Phone: 0393370679
Website: https://mobiblog.ac/