GithubHelp home page GithubHelp logo

gocms's Introduction

gocms

说明

  • 本项目只是不学网的一部分,全部项目组合起来构成不学网

后台API

前端界面

后台界面

SEO处理工具

网站整体架构

  • 关于网站设计思路和开发中遇到的问题,可以看这里

http://noxue.com/article/unclassified/gocms

部署

  • 把配置文件 config.default.json 复制一份改名为 config.json,根据文件中的配置修改配置内容
  • 编译成可执行程序,和config.json放到一个目录下就可以运行
  • 注意 如果要上传文件,必须要配置七牛

演示地址

不学网

response error code

  • 1000 post data error
  • 1111 form request field is invalid

restful api (v1)

Upload Api

  • GET /upload/token Get Upload Token For QiNiu

    • GET 127.0.0.1/api/v1/upload/token?filename=1.jpg&type=article
  • POST /upload/callback upload callback api for qiniu notify my server

    • file
    • token xxxxxxxxxxxx
    • key article/2018/10/2a498b27-bd82-4c0b-8f41-85529dcd1a05.jpg
Article Type Api
  • POST /article-type add article type
  • DELETE /article-type/{typeName} delete article type
  • PUT /article-type/{typeName} update article type
  • GET /article-type/{typeName} get a article type
  • GET /article-types?word={keyword}&page={page}&size={pagesize}&sortby={fieldName}&order={asc|desc} get article types
Article Api
  • POST /article add article

  • DELETE /article/{articleName} delete article

  • POST /article/{articleName} add a chapter to the article

  • PUT /article/{articleName} update article

  • GET /article/{typeName}/{articleName} get a article

  • GET /articles?page={page}&size={pagesize}&sortby={fieldName}&order={asc|desc} get articles

  • GET /article/{articleName}?page={page}&size={pagesize}&sortby={fieldName}&order={asc|desc} get articles chapter

  • GET /article/{typeName}/{articleName}/{chapterName} get a chapter

  • 上面接口有所改动,具体可以看main.go

gocms's People

Contributors

noxue avatar

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

Watchers

 avatar  avatar

gocms'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.