https://github.com/devflowinc/actix-web-starter
https://github.com/devflowinc/actix-web-starter
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/devflowinc/actix-web-starter
- Owner: devflowinc
- Created: 2024-04-28T20:39:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-12T00:34:22.000Z (about 1 year ago)
- Last Synced: 2025-06-22T05:17:05.302Z (3 days ago)
- Language: Rust
- Size: 131 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Trieve Actix Web Starter Template
## Local Development Start Guide
### Install OS Dependencies
`apt-get update -y && apt-get -y install pkg-config libssl-dev libpq-dev`
### Install Docker
You can either install it the right way:
- https://docs.docker.com/engine/install/
or the fast way:
```
curl https://get.docker.com | sh
```### Install Rust via Rustup
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```### Install Diesel
`cargo install diesel_cli`
### Install Cargo Watch
`cargo install cargo-watch`
### Run the Dev Server
```
cd actix-server
cargo watch -x run
```### Install the Local CLI
```
cd actix-template-cli
cargo install --path .
```The CLI can also be run using the standard `cargo run --`, placing any arguments you want to send to the CLI after the "--".
## Setup the Generated Rust Client
Note: You must have Java installed on your system to run the openapi-generator-cli.1. `cargo run --features runtime-env --manifest-path actix-server/Cargo.toml --bin redoc_ci > ./generated-openapi-client/openapi.json`
2. `cd generated-openapi-client`
3. `npx @openapitools/openapi-generator-cli generate -i openapi.json -g rust -c ./openapi-generator.yaml -o ./ --skip-validate-spec`### Publishing Your Generated Client
Documentation for your generated client can be viewed locally by running `cargo doc --open` from the folder containing the library.
In order for other's to view your documentation on [docs.rs](https://docs.rs/), you must publish the client on Cargo. Please refer to [The Cargo Book's Guide](https://doc.rust-lang.org/cargo/reference/publishing.html) for how to publish on crates.io. After doing so, your documentation will automatically be made available.