Skip to content

An enterprise Web API built for a medical store using ASP.NET Core

Notifications You must be signed in to change notification settings

Ayomipo18/Medical-Store

Repository files navigation

MedicalStore API

A WebApi for an medical store built with ASP.NET Core

  • Admin and Customers are the users on the app

  • Only Admin can create and delete products and categories

  • Only Customers can order a product

How to run

  • Clone repo

  • Open solution with visual studio

  • Make sure sql server is installed(2019 is preferable)

  • Set up your appsettings.development.json

HangFireSettings is not required to run locally, so you can skip

  "ConnectionStrings": {
    "sqlConnection": "server=.; database=MedicalStore; Integrated Security=true"
  },
  "JwtSettings": {
    "validIssuer": "MedicalStoreAPI",
    "validAudience": "https://localhost:7001",
    "secret":  "your secret key",
    "expires": 7
  },
  "Azure": {
    "blobConnectionString": "your azure storage connection string key",
    "blobContainerName": "your azure storage container name"
  },
  "HangFireSettings": {
    "Username": "your hangfire username",
    "Password": "your hangfire password"
  },
  "SENDER_EMAIL": "your sender email",
  "SENDGRID_KEY": "your sendgrid key"
  • Run Migration

With Package Manager Console

    Add-Migration InitialMigration
    Update-Database

With dotnet Command Line Interface

    dotnet ef migrations add InitialMigration
    dotnet ef database update
  • Run the app

About

An enterprise Web API built for a medical store using ASP.NET Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages