Giter VIP home page Giter VIP logo

surveynow's Introduction

SurveyNow

Survey application RUST version

git pull origin master --allow-unrelated-histories

https://dev.to/werner/practical-rust-web-development-api-rest-29g1

https://dzone.com/articles/creating-a-rest-api-in-rust-using-rocket-and-diese ***

https://api.rocket.rs/v0.4/rocket_contrib/databases/index.html

https://rocket.rs/v0.4/guide/state/#databases

http://diesel.rs/guides/getting-started/

https://docs.diesel.rs/diesel/dsl/index.html

http://docs.diesel.rs/diesel/index.html

https://docs.diesel.rs/diesel/query_dsl/trait.RunQueryDsl.html

https://rocket.rs/v0.4/guide/requests/

https://api.rocket.rs/v0.4/rocket/derive.Responder.html

https://api.rocket.rs/v0.4/rocket/request/trait.FromRequest.html

https://api.rocket.rs/v0.4/rocket/response/trait.Responder.html

https://api.rocket.rs/v0.4/rocket/http/struct.Status.html

https://rocket.rs/v0.4/guide/state/

https://rocket.rs/v0.4/guide/fairings/

https://rocket.rs/v0.4/guide/requests/

https://rocket.rs/v0.4/guide/responses/

rwf2/Rocket#14

https://api.rocket.rs/v0.4/rocket_contrib/databases/index.html

https://github.com/SergioBenitez/Rocket/tree/master/examples

https://rocket.rs/v0.4/guide/configuration/

https://api.rocket.rs/v0.4/rocket/struct.Config.html

https://lib.rs/crates/chrono

https://docs.diesel.rs/diesel/macro.table.html

https://jemurai.com/2018/08/27/csrf-tokens-with-restful-apis/

https://security.stackexchange.com/questions/166724/should-i-use-csrf-protection-on-rest-api-endpoints

http://docs.diesel.rs/diesel/deserialize/trait.Queryable.html

https://github.com/Keats/jsonwebtoken

When this trait is derived, it will assume that the order of fields on your struct match the order of the fields in the query. This means that field order is significant if you are using #[derive(Queryable)]. Field name has no affect.

rustup update && cargo update

sudo apt install libpq-dev

cargo install diesel_cli --no-default-features --features postgres chrono

echo DATABASE_URL=postgres://postgres:@localhost/surveys > .env

diesel setup

diesel migration generate create_users

sudo kill -9 $(sudo lsof -t -i:8000)

https://github.com/passcod/cargo-watch

$ sudo ROCKET_ENV=dev cargo run

openssl rand -base64 32 //generate secret key

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.