This project is a C# console application that fetches data from an API and stores it in a MongoDB database. It demonstrates how to use the HttpClient
class to send HTTP requests and the MongoDB.Driver package to interact with MongoDB.
-
Install .NET Core on your machine.
-
Clone this repository:
git clone https://github.com/TALHAA23/C-.git
-
Navigate to the project directory:
cd MyCSharpApp
-
Install the necessary packages:
dotnet add package MongoDB.Driver
- Run the application:
dotnet run