1 Star 0 Fork 36

oyiyou / nicefish-backend

forked from NiceFish / nicefish-backend 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

[TOC]

nicefish-backend

nicefish-backend is a rapid development framework for business backend system.

Build Status Codecov License

architecture

  1. j2ee
  2. mysql
  3. rest

dependencies: framework and libraries

j2ee

  1. spring/spring-boot
  2. mybatis/generator
  3. spring-mvc
  4. fastjson
  5. slf4j
  6. druid
  7. shiro
  8. swagger
  9. lombok

tool

  1. maven
  2. mybatis-generator
  3. Swagger-Bootstrap-UI
  4. tomcat/jetty
  5. mysql
  6. script tools for Linux/Mac/Windows

get started

clone project

you can clone it in your console from git oschina:

git clone http://git.oschina.net/nicefish/nicefish-backend

or from github:

git clone https://github.com/nicefishcn/nicefish-backend

build project

build it:

mvn package #or mvn install

start nicefish application

  1. start your mysql server, and execute docs/sql/nicefish.sql
  2. then run project use:
sh run.sh #on Windows, just use: run.bat

access demo

then you can access nicefish application in webbrowser or on console now:

  1. you can login && list users: In webbrowser, use this url:
  1. you can access SwaggerUI and test rest api:
  1. screenshot

On console:

$ curl -c cookie.txt "http://localhost:8080/auth/login?userName=kimmking&password=123456"
{"userId":"ca11816f-8480-469f-b33e-c705bb7d29ae","userName":"kimmking","password":"...","email":"kimmking@163.com","realName":null,"nickName":null,"qq":null,"weixin":null,"cellPhone":null,"userDesc":null,"upId":null,"status":null,"regTime":1498461050000,"lastloginTime":null,"ename":null}bogon:nicefish-backend kimmking$

$ curl -b cookie.txt http://localhost:8080/user/list
[{"userId":"ca11816f-8480-469f-b33e-c705bb7d29ae","userName":"kimmking","password":"...","email":"kimmking@163.com","realName":null,"nickName":null,"qq":null,"weixin":null,"cellPhone":null,"userDesc":null,"upId":null,"status":null,"regTime":1498461050000,"lastloginTime":null,"ename":null}]bogon:nicefish-backend kimmking$

development

if you want to regenerate all mybatis models and mappers, execute in console:

sh env.sh #on Windows, just use: env.bat
sh gen.sh #on Windows, just use: gen.bat
  • env.sh/env.bat to prepare required plugins in this project.
  • gen.sh/gen.bat to generate mybatis codes from mysql.

contribute

If you find any bug or some suggestion, click: ISSUE-GIT-OSCHINA

The MIT License (MIT) Copyright (c) 2017 kimmking Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

nicefish-backend is a rapid development framework for business backend system. 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/bhblog/nicefish-backend.git
git@gitee.com:bhblog/nicefish-backend.git
bhblog
nicefish-backend
nicefish-backend
master

搜索帮助