Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dancespiele/celery_provider
Example of Celery Provide with Warp
https://github.com/dancespiele/celery_provider
Last synced: 5 days ago
JSON representation
Example of Celery Provide with Warp
- Host: GitHub
- URL: https://github.com/dancespiele/celery_provider
- Owner: dancespiele
- License: apache-2.0
- Created: 2020-11-21T22:44:31.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T13:45:55.000Z (almost 4 years ago)
- Last Synced: 2024-10-10T05:35:23.848Z (28 days ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Celery Provider
This is an example of provider with [Rust Celery](https://rusty-celery.github.io/) and [Warp](https://github.com/seanmonstar/warp) which will get the complete result task from [Sled](https://sled.rs/) database.
# how it works
1. Install [Rabbitmq](https://www.rabbitmq.com/)
2. Clone the project: `git clone https://github.com/dancespiele/celery_provider.git`
3. Inside of the project directory add the .env file with the path of you Sled database (notice that it will be sharing with the consumer):
```
SLED_URL=[YOUR SLED PATH]
AMPQ_ADDR=[YOUR AMPQ URL]
```4. Execute `cargo run`
5. Run the [Consumer example](https://github.com/dancespiele/celery_consumer) example to see all the complete flow
6. Execute this curl
```
curl --location --request GET 'http://localhost:3000/hello' \
--header 'Content-Type: application/json'
```## Do you like it?
If you liked, please help me to make more different examples in rust with:
- BAT rewards in case that you use [Brave Browser](https://brave.com/)
- [Github Sponsors](https://github.com/sponsors/dancespiele)
- Burst coins to the address BURST-DPN6-2AT3-FCRL-9BBKG## License
Celery consumer is [Apache-2.0](LICENSE.md) licensed