Park Locator

A Park Locator api

By Thomas Friedrichs

Technologies Used

  • dotnet
  • C#
  • entity
  • swagger
  • aspnetcore

Description

This is a seeded api which can be called on to display national parks from around the country.

Setup/Installation Requirements

  • go to https://github.com/thomasfriedrichs/ParksApi.Solution
  • select the green 'code' box and copy the link to your clipboard
  • navigate to the cloned file and type 'code .'
  • in the ParksApi.Solution directory create an 'appsettings.json' file
  • copy the code below into your appsettings.json file
{
  "Logging": {
    "LogLevel": {
      "Default": "Warning",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "AllowedHosts": "*",
  "ConnectionStrings": {
    "DefaultConnection": "Server=localhost;Port=3306;database=National_Parks;uid=root;pwd=epicodus;"
  }
}
  • navigate to NationalParksLocator directory and run 'dotnet ef database update' in your terminal
  • now do 'dotnet watch run' in your terminal
  • type 'http://localhost:5000/swagger' in your browser url bar
  • now you have a view where you can test out those endpoints!

Known Bugs

  • No known Bugs

License

MIT License

Copyright (c) [2021] [Thomas Friedrichs]

If you have any questions or concerns please feel free to contact me!

Contact Information

Thomas Friedrichs friedrichs.tommy@gmail.com