You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.9 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <h1 align="center" style="border-bottom: none;">📦⚡️ Casvisor</h1>
  2. <h3 align="center">An open-source logging and auditing system developed by Go and React.</h3>
  3. <p align="center">
  4. <a href="#badge">
  5. <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
  6. </a>
  7. <a href="https://hub.docker.com/r/casbin/casvisor">
  8. <img alt="docker pull casbin/casvisor" src="https://img.shields.io/docker/pulls/casbin/casvisor.svg">
  9. </a>
  10. <a href="https://github.com/casbin/casvisor/releases/latest">
  11. <img alt="GitHub Release" src="https://img.shields.io/github/v/release/casbin/casvisor.svg">
  12. </a>
  13. <a href="https://hub.docker.com/repository/docker/casbin/casvisor">
  14. <img alt="Docker Image Version (latest semver)" src="https://img.shields.io/badge/Docker%20Hub-latest-brightgreen">
  15. </a>
  16. </p>
  17. <p align="center">
  18. <a href="https://goreportcard.com/report/github.com/casbin/casvisor">
  19. <img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/casbin/casvisor?style=flat-square">
  20. </a>
  21. <a href="https://github.com/casbin/casvisor/blob/master/LICENSE">
  22. <img src="https://img.shields.io/github/license/casbin/casvisor?style=flat-square" alt="license">
  23. </a>
  24. <a href="https://github.com/casbin/casvisor/issues">
  25. <img alt="GitHub issues" src="https://img.shields.io/github/issues/casbin/casvisor?style=flat-square">
  26. </a>
  27. <a href="#">
  28. <img alt="GitHub stars" src="https://img.shields.io/github/stars/casbin/casvisor?style=flat-square">
  29. </a>
  30. <a href="https://github.com/casbin/casvisor/network">
  31. <img alt="GitHub forks" src="https://img.shields.io/github/forks/casbin/casvisor?style=flat-square">
  32. </a>
  33. </p>
  34. ## Architecture
  35. Casvisor contains 2 parts:
  36. Name | Description | Language | Source code
  37. ----|------|----|----
  38. Frontend | Web frontend UI for Casvisor | Javascript + React | https://github.com/casbin/casvisor/tree/master/web
  39. Backend | RESTful API backend for Casvisor | Golang + Beego + MySQL | https://github.com/casbin/casvisor
  40. ## Installation
  41. Casvisor uses Casdoor to manage members. So you need to create an organization and an application for Casvisor in a Casdoor instance.
  42. ### Necessary configuration
  43. #### Get the code
  44. ```bash
  45. go get github.com/casbin/casdoor
  46. go get github.com/casbin/casvisor
  47. ```
  48. or
  49. ```bash
  50. git clone https://github.com/casbin/casdoor
  51. git clone https://github.com/casbin/casvisor
  52. ```
  53. #### Setup database
  54. Casvisor will store its users, nodes and topics informations in a MySQL database named: `casvisor`, will create it if not existed. The DB connection string can be specified at: https://github.com/casbin/casvisor/blob/master/conf/app.conf
  55. ```ini
  56. dataSourceName = root:123@tcp(localhost:3306)/
  57. ```
  58. Casvisor uses XORM to connect to DB, so all DBs supported by XORM can also be used.
  59. #### Configure Casdoor
  60. After creating an organization and an application for Casvisor in a Casdoor, you need to update `clientID`, `clientSecret`, `casdoorOrganization` and `casdoorApplication` in app.conf.
  61. #### Run Casvisor
  62. - Configure and run Casvisor by yourself. If you want to learn more about casvisor.
  63. - Open browser: http://localhost:16001/
  64. ### Optional configuration
  65. #### Setup your Casvisor to enable some third-party login platform
  66. Casvisor 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/overview).
  67. #### OSS, Mail, and SMS services
  68. Casvisor uses Casdoor to upload files to cloud storage, send Emails and send SMSs. See Casdoor for more details.
  69. ## Contribute
  70. For Casvisor, if you have any questions, you can give Issues, or you can also directly start Pull Requests(but we recommend giving issues first to communicate with the community).
  71. ## License
  72. [Apache-2.0](LICENSE)