Skip to content

juliaseid/EarthlyRemedies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Earthly Remedies

Epicodus Project June 8, 2020

By Julia Seidman & DJ Zevenbergen

Additional work from Jason Macie on June 9, 2020

Description

A project to introduce practices for building an API in C#/.Net Core 2.2.0.

Setup/Installation Requirements

  1. Clone this repository from GitHub.
  2. Install MySQL on your computer.
  3. Open the downloaded directory in a text editor of your choice. (VSCode, Atom, etc.)
  4. In your terminal, navigate to the project directory and run the commands dotnet restore and dotnet build to download dependencies and build the configuration.
  5. Currently, the mySQL database is set up with an appsettings.json file that was not uploaded to Github. Once you have saved the SQL database on your computer, create an appsettings.json file in the project root directory, and update it with your MySQL installation information in this format:
{
"ConnectionStrings": {
  "DefaultConnection": "Server=localhost;Port=YOUR PORT NUMBER HERE;database=DATABASE NAME AS YOU SAVED IT;uid=YOUR USER ID HERE;pwd=YOUR PASSWORD HERE;"
}
}
  1. To run MySQL migrations and create a database in your MySQL installation, enter the following command in your terminal: dotnet ef database update.
  2. This API uses Swagger. To launch the Swagger/OpenAPI utility in your browser, from the project directory in your terminal, enter dotnet run and open a browser page at localhost:5000. You can now see all API routes grouped by controller. Clicking on a route will expand it and show details of that route, and give you the option to "Try It Out."

Known Bugs

There are no known bugs at the time of this update.

Support and contact details

Have a bug or an issue with this application? [Open a new issue] here on GitHub.

Technologies Used

  • C#
  • .NET Core
  • ASP.NET Core MVC
  • MySQL
  • Identity
  • MSBuild
  • Git and GitHub
  • Swagger/OpenAPI

User Story

  • As a user, I want to be able GET remedies related to a specific ailment.

  • As a user, I want to be able to POST natural remedies for a specific ailment.

  • As a user, I want to see a list of all ailments.

  • As a user, I want to be able to PUT and DELETE remedies that I have created.

  • As a user, I want to be able to look up remedies by name, details, ailment and biological system/category.

  • As a user, I want to be able to tag remedies with specific ingredients.

  • As a user, I want to see all uses for a particular ingredient.

  • As a user, I want to be able to post ratings for remedies.

  • As a user, I want to see the best Remedies by rating.

  • As a user, I want error messages to tell me what I did wrong.

  • As a user, I want to be able to create a user profile and log in so that I can rate, add, edit, and delete my remedies.

  • On get request, return dictionary with key value pairs of {{"categories", List<strings>{"skin","GI","eyes","whatever"}}, {"response", List<Remedy>{}}

License

This software is licensed under the MIT license.

Copyright (c) 2020 Julia Seidman, DJ Zevenbergen & Jason Macie

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages