Skip to content

jeffchiudev/PuppyLove.Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S.N.I.F.F.

🐾 Paws Fair in Love and Fur

C# Team Week Project

Last Updated: January 28th, 2021

✒️ Jerrod Styrk, David Sterry, Jeff Chiu and Tawnee Harris





🧑‍💻 Contributers

Name GitHub Profile
Tawnee Harris tawneeh
David Sterry Dave-Sterry
Jeff Chiu jeffchiudev
Jerrod Styrk SJerrod

📚 Description

This application is a service to assist in setting up Puppy Playdates! Users will be able to register, log in and create a profile for their Dog. They will browse randomly through other Dog profiles and either click Squirrel to see the next profile or Sniff to see more details about the current Dog.

⚙️ Setup/Installation Requirements

Software Requirements

  • An internet browser of your choice; I prefer Chrome
  • A code editor; I prefer VSCode
  • .NET Core
  • MySQL
  • MySQL Workbench
  • An API Client; I prefer Postman

Open by Downloading or Cloning

AppSettings

  • This project requires two AppSettings files, one for the database of Dogs and one for the database of Users. Create your first appsettings.json file in the API project directory PuppyLove
  • Format your appsettings.json file as follows, including your unique password that was created at MySqlWorkbench installation:
{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*",
  "ConnectionStrings": {
    "DefaultConnection": "Server=localhost;Port=3306;database=puppy_love;uid=root;pwd=<YourPassword>;"
  }
}
  • Update the Server, Port, and User ID as needed.

  • Then, create your second appsettings.json file in the Client project directory PuppyLoveClient

  • Format your appsettings.json file as follows, including your unique password that was created at MySqlWorkbench installation:

{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*",
  "ConnectionStrings": {
    "DefaultConnection": "Server=localhost;Port=3306;database=puppy_love_user;uid=root;pwd=<YourPassword>;"
  }
}
  • Update the Server, Port, and User ID as needed.

Import Database using Entity Framework Core

  • Navigate to PuppyLove.Solution/PuppyLove and type dotnet ef database update into the terminal to create your Dog database.
  • Then, navigate to PuppyLove.Solution/PuppyLoveClient and type dotnet ef database update into the terminal to create your User database.

Launch this Application

  • Navigate to PuppyLove.Solution/PuppyLove and type dotnet restore into the terminal
  • Then, in the same API project directory, type dotnet build into the terminal followed by dotnet run
  • Navigate to PuppyLove.Solution/PuppyLoveClient in a second terminal and type dotnet restore into that terminal
  • Then, in the same Client project directory, type dotnet build into that terminal followed by dotnet run
  • Peruse full functionality via the localhost

📝 API Documentation

Feel free to navigate through the API endpoints via Postman or another API Client and peruse the CRUD functionality via the Client side views on the live server.

Certain information is available via query.

Dog Path Parameters

Parameter Type Description
name string Return matches by name
owner name string Return matches by owner name
mood string Return matches by mood
age int Return matches by age
size string Return matches by size
location string Return matches by location
user string Return matches by user

Accessing SwaggerUI

Launch the project from the PuppyLove project directory by typing dotnet run into the terminal. Input http://localhost:5000/swagger to view and interact with the Swashbuckle SwaggerUI.

Swagger UI Screenshot


Documentation Referenced for Swashbuckle Integration

🐛 Known Bugs

This application does not successfully limit Edit and Delete functionality to the Dog profile creator.

📫 Support and contact details

Please feel free to reach out anytime:

💾 Technologies Used

Expand Tech/tools

©️ License & Copyright

License: MIT

Copyright (c) 2021 Jerrod Styrk, David Sterry, Jeff Chiu and Tawnee Harris ⚖️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •