GithubHelp home page GithubHelp logo

billydong / layim_netclient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fanpan26/layim.aspnet

0.0 2.0 0.0 44.33 MB

LayIM3.0 .NET版本实现(owin+融云)

License: GNU General Public License v3.0

C# 86.44% CSS 0.65% JavaScript 12.91%

layim_netclient's Introduction

项目简介

LayIM.NETClient 是对于当前流行前端WebIM框架LayIM后端的实现。
LayIM项目地址:http://layim.layui.com/

-- 此项目仅供学习交流使用,不适合用在生产环境。数据库为SQL Server 2008,开发工具为Visual Studio 2015.

快速开始

第一步:新建MVC项目或者ASP.NET WebForm项目,添加 Owin Startup 类。

 public class Startup
     {
        public void Configuration(IAppBuilder app)
        {
            //使用SQL Server
            GlobalConfiguration.Configuration.UseSqlServer("LayIM_Connection");

            //使用layim api 
            app.UseLayimApi();
        }
     }

第二步:运行数据库脚本(当前未自动化,需要手动运行) LayIM.SqlServer/layim.sql


第三步:修改配置文件,增加数据库连接字符串和融云的appkey,appsecret

	<!--融云配置-->
    <add key="RongCloud_AppKey" value="pvxdm17jpv1or"/>
    <add key="RongCloud_AppSecret" value="*********"/>
    <connectionStrings>
		<add name="LayIM_Connection" connectionString="server=192.168.1.18;user id=sa;password=123123;database=LayIM;Min Pool Size=16;Connect Timeout=500;"/>
    </connectionStrings>

第四步:将下载的layui文件夹放入项目的 Scripts 文件夹下。(参考HtmlSample项目)


以下为测试截图:

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.