2020年6月20日土曜日

actix web-json-api

Rust :: rustbook and rust-by-example is good site

https://qiita.com/yukinarit/items/c5128e67d168b4f39983 中途半端なrocket api

https://rohki.hatenablog.com/entry/2018/08/03/200805 :: cargo run --example is for examples folder's codes....

https://qiita.com/kenmaro/items/652204a7afd7c870b7db
:: ソースコードのmain.rsでweb_dieselのところをcrateにしたらできた

diesel_cli instasll some lib ::
 PostgreSQL は libpq-dev , MySQL は libmysqlclient-dev, SQLite は libsqlite3-dev

https://medium.com/@fdeantoni/rust-actix-diesel-sqlite-d67a1c3ef0e
::actix diesel sqlite executable sample ただしmain.rsにHttpRequestを付加せんと動かん
curl http://127.0.0.1:8088/create -H "Content-Type: application/json" -d '{"title": "socks", "body": "summary"}'  :: ok

http://gouf.hatenablog.com/entry/2019/04/16/200240 :: sqlite on memory OK

https://keens.github.io/blog/2018/12/08/rustnomoju_runotsukaikata_2018_editionhan/ :: mod system in rust
--------------------------------------------------------------------------------------------

 http://paperface.hatenablog.com/entry/2019/02/08/%E3%80%90Ubuntu_%2B_PostgreSQL%E3%80%91Ubuntu_18_04%E3%81%ABPostgreSQL_11_1%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB :: pg install and hba-changed
or  http://db-study.com/archives/121 and https://cpoint-lab.co.jp/article/201807/4217/
:: also useful

https://stackoverflow.com/questions/39281594/error-1698-28000-access-denied-for-user-rootlocalhost :: mysql install and auth-socket delete

---------------------------------------------------------------------------------------------------
 http://linuxc.info/process/process2.html :: #include <sys/wait.h> needed!

2020年6月13日土曜日

wifi and ppa update // diesel actix-web rocket

 https://qiita.com/chikoski/items/b6461367e8c3875bb235 :: nightyl install
https://qiita.com/yukinarit/items/c5128e67d168b4f39983 :: webapi  tutor
https://qiita.com/kenmaro/items/07735625858e9333fc83#serde%E3%81%AEcrate%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B::base
----------------------------------------------------------------------------------------
https://mshr-t.hatenablog.jp/entry/2019/06/10/032205 mysqlでうまくDieselでき
diesel cli は別にインスト要した mysql,postgres,sqliteそれぞれライブラリのインストが必要

https://qiita.com/atsuk/items/c04fffe4ed0e73a67cd0 :: actix-web manual...

 https://dev.classmethod.jp/articles/actix-web/ ::actix-web
ll https://qiita.com/yukinarit/items/c5128e67d168b4f39983 :: rocket-webapi

----------------------------------------------------------------------------------------------

 https://blog.techlab-xe.net/linux-use-usb-wifi-2016/ ::wifi install memo

https://qiita.com/nyanchu/items/a8cfc5cf627d70d798bf :: ubuntu apt update memo