Giter Site home page Giter Site logo

syncmemo's Introduction

用于多设备同步文本/图片的便签Web服务,方便在PC、Android、IOS之间同步文字图片信息

Demo使用体验: memo.chancel.me

使用效果如图

使用方法

  1. 访问本站时会自动分配一个随机数(类似于1234),花几秒钟记住这个ID,点击确认接着开始编辑便签
  2. 编辑便签内容后,在任意可以访问互联网的设备上输入本站网址,并输入上一步中记住的ID,即可获得相同的便签内容

功能

  • 富文本编辑(图片/文字)
  • 二维码分享
  • 纯文本分享
  • 服务端支持配置文件自定义便签长度、大小、存储时间等

1. 部署

推荐Docker部署,简单方便,源码部署需要一定的Linux基础

1.1. Docker部署(推荐)

克隆本仓库到本地后,使用docker 生成镜像

sudo docker build -t syncmemo:latest . --no-cache

运行镜像(端口7900根据需要自行修改)

docker run -d --name syncmemo -p 7900:80 syncmemo:latest

1.2. 源码部署(gunicorn)

源码运行需要安装Python环境,请自行安装,以下部署基于Python 3.8.6

安装Python环境参考 在Linux下手动编译安装指定的Python版本

克隆仓库,并切换到仓库路径下

git clone https://github.com/chancelyg/syncmemo.git && cd syncmemo

安装依赖

pip3 install -r requirements.txt && pip3 install gunicorn

创建app.conf文件,内容可参考app.conf.example

运行gunicorn程序

gunicorn -w 1 -b 127.0.0.1:7900 --env MEMO_CONF=conf/app.conf flaskr:"create_app()"

访问 http://127.0.0.1:7900 即可看到便签首页

2. SyncMemo开发环境

Python版本3.8.6,并安装以下依赖

pip3 install -r requirements.txt

开发工具使用Visual Studio Code(VSCode)

参考启动的配置文件(LAUNCH. JSON)如下

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Flask",
            "type": "python",
            "request": "launch",
            "module": "flask",
            "console": "internalConsole",
            "python": "/home/chancel/codes/python/SyncMemo/venv/bin/python",
            "env": {
                "FLASK_APP": "${workspaceRoot}/flaskr",
                "FLASK_ENV": "development",
                "FLASK_DEBUG": "1",
                "MEMO_CONF": "${workspaceRoot}/conf/app.conf"
            },
            "args": [
                "run",
                "--host=127.0.0.1",
                "--port=7900",
            ],
            "jinja": true
        }
    ]
}

3. 感谢

项目技术依赖

项目基于以上的开源项目,感谢!

syncmemo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

syncmemo's Issues

关于图片上传

每张图片能否以图片文件的形式存储,便于维护管理

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.