feat: add more instructions in readme (#379)

Signed-off-by: Товарищ <2962928213@qq.com>
This commit is contained in:
Товарищ программист 2021-12-18 22:17:41 +08:00 committed by GitHub
parent 3355f8644e
commit 822ad14ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,7 @@ We provide two start up methods for all kinds of users.
### Manual
#### Simple configuration
Casdoor requires a running Relational database to be operational.Thus you need to modify configuration to point out the location of database.
Edit `conf/app.conf`, modify `dataSourceName` to correct database info, which follows this format:
@ -119,8 +120,9 @@ go build main.go && sudo ./main
This method requires [docker](https://docs.docker.com/get-docker/) and [docker-compose](https://docs.docker.com/compose/install/) to be installed first.
#### Simple configuration
For the convenience of your first attempt, docker-compose.yml contains commands to start a database via docker.
Edit `conf/app.conf`, modify `dataSourceName` to the fixed content:
Thus edit `conf/app.conf` to point out the location of database(db:3306), modify `dataSourceName` to the fixed content:
```bash
dataSourceName = root:123456@tcp(db:3306)/
@ -158,7 +160,7 @@ These all use casdoor as a centralized authentication platform.
## Contribute
For casdoor, if you have any questions, you can give Issues, and you can also directly Pull Requests(but we recommend give issues first to communicate with the community).
For casdoor, 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).
### I18n notice