1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
Commit Graph

487 Commits

Author SHA1 Message Date
Carlos Tuñón
ec6e14aacc
Fix find_user_by_uid's doc comment (#360)
The previous doc comment was referring to the insert_new_user function
2020-09-03 10:01:16 +01:00
Shane Witbeck
3cebb01309
Fix for build failure in diesel example (#355) 2020-08-23 12:15:52 +01:00
Justin Walters
bd2a0bb8fd
fix db error messages (#353)
Make the error messages for failed Database operations specific to their operation.
2020-08-22 04:30:08 +01:00
Jorge Carrasco
5b98f85afd
add example from community about image processing (#352) 2020-08-21 03:17:25 +09:00
Simon Strandgaard
a3faea082b
Corrected mismatch between html start tag and html end tag. (#349) 2020-08-06 05:08:54 +09:00
Rob Ede
4f29102071
Merge pull request #346 from fiji-flo/patch-1
Fix typo in form example html
2020-07-29 14:49:12 +01:00
Florian Merz
5904258215
Fix typo in form example html
Fix doctype in form.html
2020-07-29 15:19:18 +02:00
Yuki Okushi
7d80c4c3d9
Merge pull request #341 from ReTWi/patch-1
Example tip for key.pem to work
2020-07-19 16:36:37 +09:00
Max
7ac0b75fc7
Tip for key to work
For some reason mkcert default generated sertificate doesn't work. Rust panic on `keys.remove(0)`.
2020-07-19 00:57:15 +03:00
Rob Ede
4ada3c9ed1
Merge pull request #333 from fakeshadow/master 2020-06-28 00:05:25 +01:00
fakeshadow
c7660c8f86 fixes according to reviews
Fix typos. Format the comments. Use macro for routes. etc
2020-06-28 06:15:34 +08:00
Bart Willems
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
alvardes
5926035d6c
Update udp-echo example to actix 0.9 and tokio 0.2. (#336) 2020-06-25 05:19:22 +01:00
fakeshadow
1e61a03d5f add example for App::data_factory 2020-06-22 21:16:25 +08:00
Mark Lodato
b7ff0d1ffe
Add bare-bones WS server for autobahn testing (#331) 2020-06-19 20:38:11 +01:00
dyoshikawa
5b3c996774
Fix function name that camel to snake (#332) 2020-06-17 23:33:01 +01:00
Yuki Okushi
22c8eaae87
Merge pull request #326 from jdrouet/clean-docker-sample
update docker sample by caching dependencies
2020-05-29 01:00:28 +09:00
Jérémie Drouet
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
Yuki Okushi
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
Rob Ede
2d3ee94b05
Merge pull request #324 from foisonocean/remove-diesel-log-env-var 2020-05-20 12:55:10 +01:00
hronro
8973f5bb08 remove diesel=debug in env var 2020-05-20 19:34:41 +08:00
Pieter Frenssen
a790fd7537 Move the README to the root so it can be found easily. 2020-05-20 11:00:17 +03:00
Yuki Okushi
ee7ec592f4
Merge pull request #319 from JohnTitor/cert
Add introduction to use mkcert
2020-05-20 11:00:26 +09:00
Yuki Okushi
4f587e8963
Merge pull request #320 from JohnTitor/dir-traversal
Sanitize filename to prevent directory traversal attack
2020-05-20 11:00:03 +09:00
Yuki Okushi
1cc8732b08
Merge pull request #321 from JohnTitor/juniper
Rename `graphql-demo` to `juniper-advanced`
2020-05-20 10:59:49 +09:00
Pieter Frenssen
986614d698 Demonstrate how to render error pages using templates. 2020-05-19 18:21:39 +03:00
Yuki Okushi
3730fa8f55
Rename graphql-demo to juniper-advanced 2020-05-19 14:23:28 +09:00
Yuki Okushi
7823473f8d
Sanitize filename 2020-05-19 13:48:49 +09:00
Yuki Okushi
b61f7a5e96
Add introduction to use mkcert 2020-05-19 12:46:00 +09:00
Pieter Frenssen
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
Yuki Okushi
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
david-perez
10f862ce94 Refactor FromRequest for LoggedUser in simple-auth-server 2020-05-14 00:41:09 +02:00
Yuki Okushi
017daacbd9
Merge pull request #310 from JohnTitor/fix-cmpl
Fix workspace compilation
2020-04-30 16:12:14 +09:00
Yuki Okushi
f624a3b011
Tweak CI config 2020-04-30 15:43:41 +09:00
Yuki Okushi
6bfdec78af
Fix workspace compilation 2020-04-30 03:21:47 +09:00
Yuki Okushi
eb7851c967
Merge pull request #308 from erlend-sh/patch-1
Add MeiliSearch as production example
2020-04-29 18:41:22 +09:00
Erlend Sogge Heggen
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
Yuki Okushi
53c778d436
Merge pull request #307 from botika/master
Update yarte version to 0.8
2020-04-29 11:11:57 +09:00
Juan Aguilar Santillana
a65abad80d Update yarte version to 0.8 2020-04-28 21:18:18 +02:00
Milan Zivkovic
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
Chojan Shang
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
Yuki Okushi
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
Yuki Okushi
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
Pieter Frenssen
83bf0015c8 Demonstrate how to use random keys for sessions. 2020-04-13 12:36:52 +03:00
Yuki Okushi
d04f0c2e56
Merge pull request #284 from actix/remove-kriry
update dead kriry source link
2020-04-09 21:51:44 +09:00
Yuki Okushi
3f6a81e39b
Merge pull request #293 from actix/fix/chat-broker
websocket chat broker improvements
2020-04-09 17:37:59 +09:00
Rob Ede
56443d9e9c
remove jquery from broker chat client side 2020-04-09 03:20:18 +01:00
Rob Ede
a892a062e1
upgrade ws chat broker dependencies 2020-04-09 01:54:28 +01:00
Yuki Okushi
029c888dc8
Merge pull request #291 from JohnTitor/bump-deps3
part3: Update dependencies
2020-04-09 00:48:18 +09:00