Update README

This commit is contained in:
Gucheng Wang 2023-05-25 15:27:44 +08:00
parent 20a3a8ca66
commit f7b6277f00
1 changed files with 84 additions and 1 deletions

View File

@ -1 +1,84 @@
# confita
<h1 align="center" style="border-bottom: none;">📦⚡️ CasBase</h1>
<h3 align="center">An open-source AI knowledge base platform developed by Go and React.</h3>
<p align="center">
<a href="#badge">
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
</a>
<a href="https://hub.docker.com/r/casbin/casnode">
<img alt="docker pull casbin/casnode" src="https://img.shields.io/docker/pulls/casbin/casnode.svg">
</a>
<a href="https://github.com/casbin/casnode/actions/workflows/build.yml">
<img alt="GitHub Workflow Status (branch)" src="https://github.com/casbin/jcasbin/workflows/build/badge.svg?style=flat-square">
</a>
<a href="https://github.com/casbin/casnode/releases/latest">
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/casbin/casnode.svg">
</a>
<a href="https://hub.docker.com/repository/docker/casbin/casnode">
<img alt="Docker Image Version (latest semver)" src="https://img.shields.io/badge/Docker%20Hub-latest-brightgreen">
</a>
</p>
<p align="center">
<a href="https://goreportcard.com/report/github.com/casbin/casnode">
<img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/casbin/casnode?style=flat-square">
</a>
<a href="https://github.com/casbin/casnode/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/casbin/casnode?style=flat-square" alt="license">
</a>
<a href="https://github.com/casbin/casnode/issues">
<img alt="GitHub issues" src="https://img.shields.io/github/issues/casbin/casnode?style=flat-square">
</a>
<a href="#">
<img alt="GitHub stars" src="https://img.shields.io/github/stars/casbin/casnode?style=flat-square">
</a>
<a href="https://github.com/casbin/casnode/network">
<img alt="GitHub forks" src="https://img.shields.io/github/forks/casbin/casnode?style=flat-square">
</a>
<a href="https://crowdin.com/project/casnode">
<img alt="Crowdin" src="https://badges.crowdin.net/casnode/localized.svg">
</a>
</p>
## Architecture
CasBase contains 2 parts:
| Name | Description | Language |
|----------|--------------------------------|------------------------|
| Frontend | Web frontend UI for CasBase | Javascript + React |
| Backend | RESTful API backend for CasBase | Golang + Beego + MySQL |
## Installation
CasBase uses Casdoor to manage members. So you need to create an organization and an application for CasBase in a Casdoor instance.
### Necessary configuration
#### Setup database
CasBase will store its users, nodes and topics informations in a MySQL database named: `casbase`, will create it if not existed. The DB connection string can be specified at: https://github.com/casbin/casbase/blob/master/conf/app.conf
```ini
dataSourceName = root:123@tcp(localhost:3306)/
```
CasBase uses XORM to connect to DB, so all DBs supported by XORM can also be used.
#### Run casbase
- Configure and run casbase by yourself. If you want to learn more about casbase, you see [casbase installation](https://casbase.org/docs/installation).
- Install casbase using docker. you see [installation by docker](https://casbase.org/docs/Docker).
- Install casbase using BTpanel. you see [installation by BTpanel](https://casbase.org/docs/BTpanel).
- Open browser:
http://localhost:3000/
### Optional configuration
#### Setup your platform to enable some third-party login platform
CasBase uses Casdoor to manage members. If you want to log in with oauth, you should see [casdoor oauth configuration](https://casdoor.org/docs/provider/OAuth).
#### OSS, Mail, and SMS services
CasBase uses Casdoor to upload files to cloud storage, send Emails and send SMSs. See Casdoor for more details.