1
0
mirror of https://github.com/actix/examples synced 2025-06-27 09:29:02 +02:00
Commit Graph

1758 Commits

Author SHA1 Message Date
bc6f614f78 Improve the static files example. (#317)
* Improve the static files example.

* Replace the broken websocket example with a simple static HTML page.
* Show how to serve a second directory which is located inside the main
  directory but has file listing enabled.
* Demonstrate that a hierarchy of static files can be served by placing the
  JS and CSS files in their respective subfolders.
* Document how to use the example in the README.

* Improve formatting.
2020-05-18 07:28:47 +09:00
20301845fc Merge pull request #315 from david-perez/master
Refactor FromRequest for LoggedUser in simple-auth-server
2020-05-15 09:11:09 +09:00
10f862ce94 Refactor FromRequest for LoggedUser in simple-auth-server 2020-05-14 00:41:09 +02:00
017daacbd9 Merge pull request #310 from JohnTitor/fix-cmpl
Fix workspace compilation
2020-04-30 16:12:14 +09:00
f624a3b011 Tweak CI config 2020-04-30 15:43:41 +09:00
6bfdec78af Fix workspace compilation 2020-04-30 03:21:47 +09:00
eb7851c967 Merge pull request #308 from erlend-sh/patch-1
Add MeiliSearch as production example
2020-04-29 18:41:22 +09:00
92ddda1af7 Add MeiliSearch as production example
MeiliSearch very recently migrated from Tide to actix-web: https://github.com/meilisearch/MeiliSearch/pull/601
2020-04-29 09:09:47 +02:00
53c778d436 Merge pull request #307 from botika/master
Update yarte version to 0.8
2020-04-29 11:11:57 +09:00
a65abad80d Update yarte version to 0.8 2020-04-28 21:18:18 +02:00
8dab533b40 Simple Todo API using actix-web and sqlx with postgresql database (#303)
* Simple Todo application using Actix-web with SQLx and PostgreSQL

* fix issue with not matching project name

* remove comment

* - downgrade on actix-web 2.0.0
- fixed typo
- renamed .env-example to .env.example
- removed comments
2020-04-23 17:03:04 +09:00
9155edfe8d Update dependencies for casbin example. (#300)
* Update dependencies & Clean description.

* Add .env for logger.

* Updating code due to code review.
2020-04-20 07:52:00 +09:00
3b7d9d8b7a Merge pull request #298 from pymongo/master
Remove unused variable _stopper in shutdown-server example
2020-04-17 07:10:40 +09:00
2fc8d39940 Remove unused variable _stopper 2020-04-16 19:16:41 +08:00
ea5df90869 Merge pull request #294 from pfrenssen/use-random-keys
Demonstrate how to use random keys for sessions
2020-04-13 19:25:28 +09:00
83bf0015c8 Demonstrate how to use random keys for sessions. 2020-04-13 12:36:52 +03:00
d04f0c2e56 Merge pull request #284 from actix/remove-kriry
update dead kriry source link
2020-04-09 21:51:44 +09:00
3f6a81e39b Merge pull request #293 from actix/fix/chat-broker
websocket chat broker improvements
2020-04-09 17:37:59 +09:00
56443d9e9c remove jquery from broker chat client side 2020-04-09 03:20:18 +01:00
a892a062e1 upgrade ws chat broker dependencies 2020-04-09 01:54:28 +01:00
029c888dc8 Merge pull request #291 from JohnTitor/bump-deps3
part3: Update dependencies
2020-04-09 00:48:18 +09:00
b84e1d9fb4 part3: Update dependencies 2020-04-08 01:18:52 +09:00
32d821d321 Merge pull request #289 from BartWillems/master
Remove unwraps from websocket-chat
2020-04-06 22:46:46 +09:00
ed8d4b5a8b removed unnecessary unwraps from websocket-chat
Signed-off-by: Bart Willems <bwillems@protonmail.com>
2020-04-05 22:30:15 +02:00
0fb09fdf62 Merge pull request #288 from JohnTitor/bump-deps2
part2: Update dependencies
2020-04-06 04:02:22 +09:00
051c25d89d remove dead kriry links
github.com/kriry no longer available

fixed #283
2020-04-05 13:30:41 +01:00
4e051e8cd5 part2: Update dependencies 2020-04-05 13:50:44 +09:00
b8620702fa Merge pull request #287 from JohnTitor/bump-deps
part1: Update dependencies
2020-04-05 13:27:32 +09:00
6cdc1c8738 part1: Update dependencies 2020-04-05 02:30:49 +09:00
328e170c76 Merge pull request #286 from JohnTitor/clean-up
Clean-up things
2020-04-03 20:47:26 +09:00
046604f286 Run rustfmt 2020-04-03 16:16:17 +09:00
8f1c0a85cf Fix/suppress warnings 2020-04-03 16:14:30 +09:00
0f1568bd3c Merge pull request #285 from JohnTitor/s3-cleanup
Clean-up s3 example
2020-04-03 15:11:00 +09:00
cf56557d00 Clean-up s3 example 2020-04-01 18:56:36 +09:00
20123c5d80 Merge pull request #280 from Jonathas-Conceicao/topic/fix_jsonrpc
jsonrpc: Fix AppState extraction
2020-03-28 12:35:59 +09:00
92c9dd4c53 Merge pull request #281 from JohnTitor/diesel-uuid
Fix simple-auth-server compilation
2020-03-28 12:35:33 +09:00
1c828c2e49 Merge pull request #277 from emreyalvac/patch-1
JWT example added to README.md
2020-03-28 10:50:23 +09:00
e921a3f3cd Fix simple-auth-server compilation 2020-03-28 10:47:54 +09:00
024c5e7597 jsonrpc: Fix AppState extraction
Signed-off-by: Jonathas-Conceicao <jadoliveira@inf.ufpel.edu.br>
2020-03-27 21:57:31 -03:00
ac1868fdf2 JWT example added to README.md 2020-03-22 18:51:50 +03:00
5320117bca Fixed possible panic in multipart example (#276)
* Fixed possible panic

* Fixed possible panic in multipart-async-std
2020-03-22 08:31:45 +09:00
7eaa87f4f1 add AWS_REGION env variable and add _ prefix (#270)
* add AWS_REGION env variable and add _ prefix

* update indent and remove brackets

* remove match code line

Co-authored-by: Kai <byeongsangp@tripbtoz.com>
2020-03-20 09:21:58 +09:00
ee0d84fe38 Merge pull request #272 from JohnTitor/rusoto
Update `rusoto` dependencies to 0.43.0
2020-03-17 18:41:11 +09:00
9eef5f2b6b Update rusoto dependencies to 0.43.0 2020-03-17 08:53:05 +09:00
4c9ec8b533 Merge pull request #271 from botika/master
Update yarte version to 0.7
2020-03-17 08:26:00 +09:00
99e9d70225 Update yarte version to 0.7 2020-03-16 12:04:11 +01:00
8f3ce39d05 New example: Return JSON decode errors to a client (#268)
* Add JSON decode error example

* cargo fmt

* Use more appropriate response codes

* curl -i similar for all examples

* Add one more example of 422 response

* use to_string instead of empty format!
2020-03-16 03:21:13 +09:00
456f3efc55 Merge pull request #267 from hsluoyz/master
Add Casbin example to README
2020-03-07 16:04:50 +09:00
eb812fbbd0 Add Casbin example to README 2020-03-07 12:38:54 +08:00
84b364544b Add a basic casbin example for actix-web. (#264)
* Add the casbin example for actix-web.

* Update for clear description.
2020-03-03 15:13:43 +09:00