Giter Club home page Giter Club logo

chat's Introduction

开发

客户端 /chat/chat(默认连接线上环境,不需要开启服务端,如果有需要,请把network中的index和websocket对应baseurl更换为localhost的)

技术栈

vue, ant-ui

运行

npm i 
npm run serve

聊天服务端 /chat/server

注意:需要安装mongodb 需在服务器根路径下创建

config/index.js

然后写入配置,如下

const mail_config = {
    host: '邮箱服务器',
    port: 25,
    auth: {
        user: '邮箱的账号', 
        pass: 'fdxmyiymilohbgjc'
    }
}

const mail_options = {
    from: 邮件来源,
    to: 邮件发送到哪里,多个邮箱使用逗号隔开,
    subject: 邮件主题,
    text: 存文本类型的邮件正文
};
// 详细请看阿里云官网,并开启智能对话机器人
const aliyun = {
    AccessKeyID: 阿里云账号信息,
    AccessKeySecret: 阿里云账号信息
}

const tokenKey = 密钥

module.exports = {
    mail_config,
    mail_options,
    tokenKey,
    aliyun
}

启动命令

node index.js

朋友圈服务器 /chat/moments

技术栈:

java,springboot,mybatis

配置好数据库就行

oss签名服务器 /chat/moments

技术栈:

node,第三方SDK

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.