Code Monkey home page Code Monkey logo

casbin-oa's Introduction

Casbin-OA

Casbin-OA is An official manuscript processing, evaluation and display system for Casbin technical writers

Online demo

Deployed site: https://oa.casbin.com/

Architecture

Casbin-oa contains 2 parts:

Name Description Language Source code
Frontend Web frontend UI for Casbin-oa Javascript + React https://github.com/casbin/casbin-oa/tree/master/web
Backend RESTful API backend for Casbin-oa Golang + Beego + MySQL https://github.com/casbin/casbin-oa/

Installation

Casbin-OA uses Casdoor to manage members. So you need to create an organization and an application for Casnode in a Casdoor instance.

Necessary configuration

  • Get the code:
    go get github.com/casdoor/casdoor
    go get github.com/casbin/casbin-oa

    or

    git clone https://github.com/casdoor/casdoor
    git clone https://github.com/casbin/casbin-oa.git
  • Setup database:

    Casbin-oa will store its student, report and topics informations in a MySQL database named: casbin_oa, will create it if not existed. The DB connection string can be specified at: https://github.com/casbin/casbin-oa/tree/master/conf

    dataSourceName = root:123@tcp(localhost:3306)/

    Casbin-oa uses XORM to connect to DB, so all DBs supported by XORM can also be used.

  • Run backend (in port 10000):

    go run main.go
  • Run frontend (in the same machine's port 9000):

    cd web
    ## npm
    npm install
    npm run start
    ## yarn
    yarn install
    yarn run start
  • Open browser:

    http://localhost:9000/

Optional configuration

Setup your forum to enable some third-party login platform

Casbin-OA uses Casdoor to manage members. If you want to log in with oauth, you should see casdoor oauth configuration.

OSS, Mail, and SMS services

Casbin-OA uses Casdoor to upload files to cloud storage, send Emails and send SMSs. See Casdoor for more details.

Github corner

We added a Github icon in the upper right corner, linking to your Github repository address. You could set ShowGithubCorner to hidden it.

Configuration:

export const ShowGithubCorner = true

export const GithubRepo = "https://github.com/casbin/casbin-oa" //your github repository

casbin-oa's People

Contributors

hsluoyz avatar mrguoking avatar nekotoxin avatar nomeguy avatar pokyux avatar steve0x2a 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.