Git Product home page Git Product logo

itlab-back's Introduction

Backend for RTUITLab managing system

Status Master Develop
Buid Build Status Build status
PubliAPI RTUITLab.ITLab.Models.PublicAPI ---

Prerequriments

.Net Core 2.1

Configuration

appsettings.Secret.json must be placed to the BackEnd folder

{
    "DB_TYPE": "IN_MEMORY",
    "ConnectionStrings" : {
        "SQL_SERVER_LOCAL": "ms sql server connection string if DB_TYPE == SQL_SERVER_LOCAL",
        "SQL_SERVER_REMOTE": "ms sql server connection string if DB_TYPE == SQL_SERVER_LOCAL",
        "POSTGRES_LOCAL": "postgres connection string if DB_TYPE == POSTGRES_LOCAL"
    },
    "JwtIssuerOptions": {
        "SecretKey": "some random key for JWT"
    },
    "RegisterTokenPair": [
        {
            "Email": "[email protected]",
            "Token": "ABCDEFG"
        }
    ],
	"UseDebugEmailSender": true,
    "EmailSenderSettings": {
        "Email": "sender email",
        "Password": "password for sender email",
        "InvitationTemplateUrl": "direct link to invitation email template",
        "ResetPasswordTemplateUrl": "direct link to reset password template",
        "SmtpHost": "smtp host for sender email",
        "SmtpPort": "smtp port for sender email"
    },
    "DB_INIT": true,
    "DBInitializeSettings": {
        "Users" : [
            {
                "UserName": "user name for one of default users",
                "FirstName": "firstname for one of default users",
                "LastName": "lastname for one of default users",
                "Email": "email for one of default users",
                "PhoneNumber": "phone number for one of default users",
                "Password": "password for one of default users"
            }
        ],
        "WantedRoles": [
            {
                "Email": "email of target user",
                "RoleName": "name of role (Models.People.Roles.RoleNames)"
            }
        ]
    },
    "UseConsoleLogger": true,
    "NotifierSettings": {
        "Host": "link to notifier service",
        "AccessToken": "token for access that service from notifier service",
        "NotifySecret": "token for access notifier service from that service"
    }
}

DB_TYPE - type of the database which will be used

UseDebugEmailSender - if true app will use a debug email service

DB_INIT - if true - database will be initialized from DBInitializeSettings section

UseConsoleLogger - if true - all notifications will be print in logger. If false - notifications will be send via notifier service

Run

cd ./Backend
dotnet run

API will be available on localhost:5000

itlab-back's People

Contributors

capchik avatar lazymechanic avatar valentinyuzhakov avatar

Watchers

 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.