GithubHelp home page GithubHelp logo

chatroom_server's Introduction

介绍

image

这是一个用于学习node 所写的仿网页微信的即时聊天的服务端
主要数据库是redis和mysql。

  • redis用来存储token & 离线消息暂存 & 离线好友请求暂存
  • mysql 存储基本信息
  • 本地存储聊天记录

安装依赖

npm install

启动项目

npm start

服务的默认端口号是8086,关于数据库的配置,请在config文件夹下面修改.

api文档 ---未完成❎

登录接口

请求地址:47.105.210.34:8086/upload

字段名字 数据类型 是否必填 备注

返回示例

{
    errcode:0,
    msg:"",
    data:{
        
    }
}
上传文件接口

请求地址:post 47.105.210.34:8086/upload

字段名字 数据类型 是否必填 备注
token String

返回示例

{
    errcode:0,
    msg:"",
    data:{
        
    }
}

chatroom_server's People

Contributors

magic-zhu avatar dependabot[bot] 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.