- Git
- C#
- .NET6 Framework
- Newtonsoft.json
- New York Times API
A console application that can be used in getting the top stories on the new york times.
-
Clone the Repository: Open your Git Bash terminal and run the following command to clone the project:
git clone _REPOSITORY_NAME_
-
Install .NET 6.0 Framework: Ensure you have the .NET 6.0 Framework installed (used .NET 6.0.402 for this application) on your PC. Make sure you have completed the essential steps to write C# code in the REPL.
-
Create
EnvironmentVariables.cs
: After cloning the repository, you need to create anEnvironmentVariables.cs
file in the root directory of the project. Be sure to create it in the production directory of your project (ConsoleAPICall/EnvironmentVariables.cs
). Use the following template for yourEnvironmentVariables.cs
:namespace ConsoleApiCall.Keys { public static class EnvironmentVariables { public static string ApiKey = "[YOUR-API-KEY-HERE]"; } }
Replace "[YOUR-API-KEY-HERE]" with your own API key.
-
Build and Run the Application:
- To Install all Packages used and Migrations, run the command:
dotnet restore
-
If you're not interested in seeing the build messages, run the following command to build and run the application:
dotnet run
This command builds and runs the application for you.
-
If you are interested in seeing the build messages, follow these steps:
-
Build the Project: Run the following command to build the project and add the essential directories to execute the application:
dotnet build
-
Run the Project: After building the application, run the following command to see all of the results outputted into the console:
dotnet run
-
Project in development mode: If you would love to make changes to the Application, feel free since its licensed under the GNU General Public License. To make changes to app and run app at the same time, use the command:
dotnet watch run
-
- No detected bugs
Licensed under the GNU General Public License
- Email: [email protected]
- Instagram: @Emmanuel.9944
- Twitter: @Emzzy241 and Profile Name: Dynasty
- Github Username: Emzzy241