1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00
Commit Graph

628 Commits

Author SHA1 Message Date
4ada3c9ed1 Merge pull request #333 from fakeshadow/master 2020-06-28 00:05:25 +01:00
c7660c8f86 fixes according to reviews
Fix typos. Format the comments. Use macro for routes. etc
2020-06-28 06:15:34 +08:00
399fbee1e4 send the correct exit code when closing the websocket (#335)
Signed-off-by: Bart Willems <bwillems@protonmail.com>
2020-06-25 05:20:27 +01:00
5926035d6c Update udp-echo example to actix 0.9 and tokio 0.2. (#336) 2020-06-25 05:19:22 +01:00
1e61a03d5f add example for App::data_factory 2020-06-22 21:16:25 +08:00
b7ff0d1ffe Add bare-bones WS server for autobahn testing (#331) 2020-06-19 20:38:11 +01:00
5b3c996774 Fix function name that camel to snake (#332) 2020-06-17 23:33:01 +01:00
22c8eaae87 Merge pull request #326 from jdrouet/clean-docker-sample
update docker sample by caching dependencies
2020-05-29 01:00:28 +09:00
10887568a0 update docker sample by caching dependencies
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-27 22:01:26 +02:00
e4b94fc9a5 Merge pull request #323 from pfrenssen/error-pages-using-templates
Demonstrate how to access templating engines in app_data() to render HTML error pages
2020-05-20 22:07:13 +09:00
2d3ee94b05 Merge pull request #324 from foisonocean/remove-diesel-log-env-var 2020-05-20 12:55:10 +01:00
8973f5bb08 remove diesel=debug in env var 2020-05-20 19:34:41 +08:00
a790fd7537 Move the README to the root so it can be found easily. 2020-05-20 11:00:17 +03:00
ee7ec592f4 Merge pull request #319 from JohnTitor/cert
Add introduction to use mkcert
2020-05-20 11:00:26 +09:00
4f587e8963 Merge pull request #320 from JohnTitor/dir-traversal
Sanitize filename to prevent directory traversal attack
2020-05-20 11:00:03 +09:00
1cc8732b08 Merge pull request #321 from JohnTitor/juniper
Rename `graphql-demo` to `juniper-advanced`
2020-05-20 10:59:49 +09:00
986614d698 Demonstrate how to render error pages using templates. 2020-05-19 18:21:39 +03:00
3730fa8f55 Rename graphql-demo to juniper-advanced 2020-05-19 14:23:28 +09:00
7823473f8d Sanitize filename 2020-05-19 13:48:49 +09:00
b61f7a5e96 Add introduction to use mkcert 2020-05-19 12:46:00 +09:00
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