GithubHelp home page GithubHelp logo

sprakashnet1 / netcoresaas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from janaks09/netcoresaas

0.0 1.0 0.0 5.17 MB

Asp.Net Core multi-tenant application Sample using #SaaSKit

C# 13.93% CSS 30.88% JavaScript 2.30% Ruby 0.03% HTML 47.84% Shell 0.46% PowerShell 0.16% Batchfile 0.04% SCSS 4.35%

netcoresaas's Introduction

NetCoreSaaS

Asp.Net Core multi-tenant application Sample using #SaaSKit

.Net Core 2.1 Support!!!

This application is upgraded to support .Net Core 2.1.

Known Issue

Currently HTTPS redirection is not supported.

Application Architecture

Nothing Complex.

I followed separate database per tenant approach.

In NetCoreSaaS.Data project we have three different context.

  • SystemDbContext holds application/system level data
  • CatalogDbContext holds tenant level data like tenant configuration
  • TenantDbContext holds tenant specific data like tenant user, other tenant data

Steps to run application

  • Create migration file if not created (but its already created under Data folder of NetCoreSaaS.WebHost). If you want to re-create migration later check TempFiles folder in NetCoreSaaS.WebHost for migration scripts. Run System Database and Catalog Database migration only.
  • Run application. Application will itself migrate changes to database with seeding in NetCoreSaaS_Catalogdb with tenant data.
  • For testing purpose, I have configure application to listen request in host http://*.localhost:6001 (you can find configuration in Program.cs file.) Default seeding has only added two tenant which hostname are http://tenant1.localhost:6001 and http://tenant2.localhost:6001 therefore request from only these two hostname will be resolved else tenant will not resolve. You can find seeding in NetCoreSaaS.WebHost > Infrastructures > Helpers > DbHelper folder.
  • Once application is running, go to http://tenant1.localhost:6001 and http://tenant2.localhost:6001 you can find same site for two virtual shop(tenants).
  • You can also perform user signup and login operation with these tenants.

More feature and documentation are comming...

netcoresaas's People

Contributors

janaks09 avatar dependabot[bot] avatar

Watchers

James Cloos 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.