Skip to content

A console app that will generate the top stories on the new york times

Notifications You must be signed in to change notification settings

Emzzy241/ConsoleApiCall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ConsoleAPICall

made by Mojiboye Emmanuel(Dynasty)

A Console app used to make an api call

Technologies Used

  • Git
  • C#
  • .NET6 Framework
  • Newtonsoft.json
  • New York Times API

Description

A console application that can be used in getting the top stories on the new york times.

Setup/Installation

  1. Clone the Repository: Open your Git Bash terminal and run the following command to clone the project:

    git clone _REPOSITORY_NAME_
  2. 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.

  3. Create EnvironmentVariables.cs: After cloning the repository, you need to create an EnvironmentVariables.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 your EnvironmentVariables.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.

  4. 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:

      1. Build the Project: Run the following command to build the project and add the essential directories to execute the application:

        dotnet build
      2. Run the Project: After building the application, run the following command to see all of the results outputted into the console:

        dotnet run
      3. 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

Detected Bugs/ Issues

  • No detected bugs

License

Licensed under the GNU General Public License

Contact Info

  • Email: [email protected]
  • Instagram: @Emmanuel.9944
  • Twitter: @Emzzy241 and Profile Name: Dynasty
  • Github Username: Emzzy241

About

A console app that will generate the top stories on the new york times

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages