Code Monkey home page Code Monkey logo

easynodeserver's Introduction

easyNodeServer

非常容易使用的NodeServer, 同时兼顾安全性和易用性, 包括了iOS和Android客户端

Server端使用: 安装mongodb, 安装redis, 命令行打开mNodeServer根目录, 运行"npm install", 运行"node example.js". example.js向mongodb导入了示例用户. 启动server. 其他配置请看config.json

iOS端使用: 修改GlobalTools.m中的ServerUrl为Server端地址.

Android端使用: 修改GlobalUtil.java中的ServerUrl为Server端地址.

安全设计: 使用RSA交换临时AES秘钥, 使用AES加密JWT签名秘钥, 使用JWT作为token凭证.

易用设计: 服务端除获取和重新获取token的接口外, 其他接口都使用中间件进行操作, 下层业务接口不用关心用户操作, 只用关心业务逻辑. 客户端的加密层负责所有token相关的加解密操作, 网络服务层封装了相关数据, 下层业务接口不用关心用户管理操作, 只用关心业务逻辑.

Very easy used NodeServer Also consider security. include iOS and Android Client

Server use: Install mongodb, install redis, open the mNodeServer root directory using commandline , run "npm install", run "node example.js". Example.js import example user account to mongodb. Start the server. Other configuration check config.json

iOS client: modify GlobalTools.m, change ServerUrl to server address.

Android client: modify GlobalUtil.java, change ServerUrl to server address.

security issue: use RSA exchange temporary AES key, use AES encrypt JWT signature key, use JWT as user token.

easynodeserver's People

Contributors

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