Skip to content

Commit c6534a6

Browse files
authored
Update README.md to show how to run the backend
1 parent 539026d commit c6534a6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,20 @@ DATABASE_URL=postgres://refactor:password@localhost:5432/refactor_platform sea-o
8888
### Generate a new Entity from Database
8989
Note that to generate a new Entity using the CLI you must ignore all other tables using the `--ignore-tables` option. You must add the option for _each_ table you are ignoring.
9090
91-
9291
```bash
9392
DATABASE_URL=postgres://refactor:password@localhost:5432/refactor_platform sea-orm-cli generate entity -s refactor_platform -o entity/src -v --with-serde both --serde-skip-deserializing-primary-key --ignore-tables {table to ignore} --ignore-tables {other table to ignore}
9493
```
9594
95+
## Starting the Backend
96+
97+
To run the backend directly outside of a container:
98+
99+
```bash
100+
cargo run -- -l DEBUG -d postgres://refactor:password@localhost:5432/refactor_platform
101+
```
102+
103+
This will start the backend with log level DEBUG and attempt to connect to a Postgres DB server on the same machine with user `refactor` and password `password` on port `5432` and selecting the database named `refactor_platform`.
104+
96105
## Project Directory Structure
97106
98107
`docs` - project documentation including architectural records, DB schema, API docs, etc

0 commit comments

Comments
 (0)