Coder Social home page Coder Social logo

weizai118 / startpoint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dianbaer/startpoint

0.0 1.0 0.0 33.15 MB

startpoint是一个身份系统,提供用户、树形结构组、token等API。

License: MIT License

CSS 2.73% HTML 3.70% JavaScript 50.41% Batchfile 0.03% Java 43.13%

startpoint's Introduction

startpoint

Build Status Codacy Badge License

startpoint是一个身份系统,提供用户、树形结构组、token等API。

StartpointServer(目录结构)

|--src.main.java(服务器代码)
	|--StartpointServer.properties---------------配置文件(需要修改)
	|--generatorConfig.xml--------------------mybatis自动生成配置文件(重新生成时,需要修改)
	|--org.startpoint
		|--server.Expand.java-------------------扩展启动类
		|--plugin.PaginationPlugin.java-------mybatis自动生成配置文件启动类
		
|--protobuf(消息包生成工具)
|--WebContent
	|--index.html(所有API示例,需要修改url)
	|--js(所有API示例依赖js)
	|--html(所有API示例依赖html)

接口调用界面示例

获取admintoken

接口调用界面示例

创建顶级组

接口调用界面示例

创建归属于组的用户

接口调用界面示例

打版本:在项目根目录下,执行

ant

推荐环境:

快捷部署 https://github.com/dianbaer/deployment-server

jdk-8u121

apache-tomcat-8.5.12

MariaDB-10.1.22

CentOS-7-1611

发布项目:

1、安装数据库

create database startpoint

source ****/startpoint.sql

2、将StartpointConfig放入服务器某个路径,例如

/home/StartpointConfig

3、将StartpointServer.properties放入tomcat根目录下,例如

/home/tomcat/StartpointServer.properties

并修改config_dir对应的StartpointConfig路径

4、将StartpointServer.war放入tomcat/webapps,例如

/home/tomcat/webapps/StartpointServer.war

startpoint提供的API功能(除了获取token接口请求外,其他接口需要传admintoken):

获取admintoken示例:

var data = {
	'hOpCode': '20',
	'userName': 'admin',
	'userPassword': '123456'
};
var header = [];
header["hOpCode"] = "20";
var httpClient = new juggle.HttpClient();
httpClient.send(data, "http://localhost:8080/StartpointServer/s", header);
httpClient.addEventListener(juggle.httpEventType.SUCCESS, adminSuccess, this);
httpClient.addEventListener(juggle.httpEventType.ERROR, adminError, this);

1、用户组API(树形结构):

创建、修改、获取、删除用户组。
获取用户组列表。

2、用户API:

创建、修改、获取用户。
获取用户列表。
根据邮箱获取用户、获取用户头像。
检查用户名、手机是否存在。

3、tokenAPI:

登录通过用户名密码获取token
更新token
删除token

java服务器基于grain

依赖以下库,共(1841行,学习成本极低)

grain-httpserver.jar(1318行)
grain-log.jar(111行)
grain-threadkeylock.jar(364行)
grain-mariadb.jar(48行)

github:

https://github.com/dianbaer/grain

码云:

https://gitee.com/dianbaer/grain

js客户端基于juggle

最精简依赖以下库,共(653行,学习成本极低)

juggle-help.js(33行)
juggle-event.js(256行)
juggle-http.js(99行)
juggle-mv.js(104行)
juggle-resource.js(105行)
juggle-module.js(56行)

github:

https://github.com/dianbaer/juggle

码云:

https://gitee.com/dianbaer/basic

startpoint's People

Contributors

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