Code Monkey home page Code Monkey logo

the_one's Introduction

基于gin的web后端api服务

  1. 生成公私钥
生成私钥
openssl genrsa -out rsa/the_one.rsa
根据私钥生成公钥
openssl rsa -in rsa/the_one.rsa -pubout > rsa/the_one.rsa.pub

2.目录树

├── api               # api接口
├── bin               # 生成的二进制文件目录
├── cmd               # 程序入口
├── code              # 返回的状态码
├── common            # 常量
├── env               # 配置文件
├── initialize
│   ├── conf          # 配置
│   ├── db            # 初始化db(mysql,redis)
│   ├── init.go      
│   ├── logger        # 初始化日志
│   ├── app           # 初始化api
│   └── service       # api响应与请求
├── internal          
│   ├── header        # 请求头参数
│   ├── param         # 请求参数
│   └── response      # 响应参数
├── middleware        # 中间件
│   ├── jwt.go        # jwt校验
├── model             # 模型
├── router            # 路由
│   ├── api
├── rsa               # jwt 公私钥
└── tools             # 工具
    ├── jwt.go
    ├── jwt_test.go
    └── rsa

3.运行

make run 

4.编译

make build

the_one's People

Stargazers

怕是有点日白哦 avatar  avatar Ethan avatar

Watchers

James Cloos avatar Ethan 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.