Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/fanpan26/LayIM.AspNet

LayIM3.0 .NET版本实现(owin+融云)
https://github.com/fanpan26/LayIM.AspNet

Last synced: 28 days ago
JSON representation

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

Lists

README

        

### 项目简介

###### LayIM.NETClient 是对于当前流行前端WebIM框架LayIM后端的实现。
###### LayIM项目地址:http://layim.layui.com/
-- 此项目仅供学习交流使用,不适合用在生产环境。数据库为SQL Server 2008,开发工具为Visual Studio 2015.

###### 快速开始
---
第一步:新建MVC项目或者ASP.NET WebForm项目,添加 Owin Startup 类。
```c#
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

```


   
```

```



```

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

---
以下为测试截图:

![](http://img1.gurucv.com/image/2017/6/19/f045156db6744b5eb0c7e2598308c2e1.png)
![](http://img1.gurucv.com/image/2017/6/19/b64e793eec3a48fa9f060213970477c7.png)
![](http://img1.gurucv.com/image/2017/6/19/4dd5e0f5a658479fb3895c206c4796fe.png)
![](http://img1.gurucv.com/image/2017/6/19/deee85dd76c2444abe266110811a0b57.png)