Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thaodt/play-actix-api
https://github.com/thaodt/play-actix-api
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thaodt/play-actix-api
- Owner: thaodt
- License: apache-2.0
- Created: 2021-10-05T12:39:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-02T09:48:14.000Z (over 1 year ago)
- Last Synced: 2024-12-08T00:42:32.050Z (about 1 month ago)
- Language: Rust
- Size: 2.5 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Play Actix Web
## Setup
Firstly, please make sure you already had MySQL up and running.
Next, setup db by running the `db_schema.sql` script.
When `db_schema.sql` has executed successfully, run the tests:
```shell
cargo test
```After the tests have completed and all passed, startup the application:
```shell
cargo run
```The following message should be printed to the terminal:
```shell
=== Playing Actix Web APIs ===
Using configuration file from config.json
Connected to database: mysql://dev_guy:actIX_me1881@localhost/user_man
Listening on: 127.0.0.1:8008
```
Depending on your setup, the log on console could be different from me.## Test Coverage
All expected paths of behavior are tested.
These test serve as an example for what is sufficient test coverage for an initial application.P/S: not all routes are fully tested.