Git Product home page Git Product logo

dotnet-core-seed-mysql's Introduction

dotnet-core-seed-mssql

Build a fully functional, cloud-ready, and professional Web Api using the latest features in the .NET Core 5.0 and MySQL '8.0.25' as your database management system.

Features

  • Fully async for better scalability
  • Using Dapper instead of Entity Framework
  • Token Protection / Route Protection using security
  • Pagination using dapper

Getting started

Helpful links if you're new to Dotnet core

Get project running

  • cd into cloned repo
  • Run the script located at Scripts/database_scripts.sql
  • Once database is created and schema has been generated you need to add a SQL Login and make sure it is granted permissions for read/write to DNSeed database.
  • Open Visual Studio 2019, open Solution and build
  • Otherwise you can run: dotnet restore
  • Followed by: dotnet run
  • If running in Development mode you need to edit appsettings.Development.json Make sure you update connectionString accordingly => SQL Login
  • If running in Production mode you need to edit appsettings.Production.json Make sure you update connectionString accordingly => SQL Login

Get login working with your backend

  • Once the site is running, it will load up Swagger endpoint, from here you can test login feature.
  • The provided Scripts/database_scripts.sql file, adds a user: demo2 / demo2_Sup3rPwd
  • Once logged in, grab the token and modify Swagger to use given token.
  • Start adding/editing products.

dotnet-core-seed-mysql's People

Contributors

lexa044 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.