Coder Social home page Coder Social logo

push-text-server's Introduction

Push-Text-Server

Push Text (Chrome extension) 的服务器端程序.

使用方法

使用Docker环境

  • 安装Docker安装方法
  • 安装Docker Compose安装方法
  • 修改server_config.env
  • 如需配置nginx将https请求反向代理给nodejs,则需要新建配置目录,并将ssl证书的.cert文件和.key文件以及nginx的代理https配置文件ssl.conf放入其中
  • 新建配置目录的方法,在终端输入:
    sudo mkdir /ssl-conf
  • 在终端执行:
    sudo docker-compose up -d
  • 访问方式:
    • 如果配置了https则使用对应域名访问
    • 如果未配置https则使用默认端口3000进行访问

手动安装环境和配置

  • 安装nodejsmongodb
  • 修改config.json:
    {
        "db": "mongodb://localhost/push_text",
        "server_port": 3000,
        "qiniu_access_key": "<your_access_key>",
        "qiniu_secret_key": "<your_secret_key>",
        "qiniu_bucket": "<your_bucket_name>"
    }
    其中<your_access_key>处填写你的七牛云对象存储的access key, <your_secret_key>处填写你的七牛云对象存储的secret key, <your_bucket_name>处填写你的七牛云对象存储的bucket名称.
  • 启动:
    node app.js
    
  • 访问方式:
    • 使用默认端口3000进行访问

push-text-server's People

Contributors

wqwz111 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.