Giter Club home page Giter Club logo

documentation's Introduction

Logo

Nodejs


Command Line

  • Cập nhật Rust: rustup update
  • Gỡ cài đặt Rust: rustup self uninstall
  • Kiểm tra phiên bản Rust: rustc --version
  • Kiểm tra phiên bản Cargo: cargo --version
  • Mở Document Project cargo doc --open
  • Generate Secret Key 256-bit base64 key: openssl rand -base64 32

  • Writing Automated Tests: cargo test

  • Check a Cargo Project: cargo check

  • Building a Cargo Project: cargo build cargo build --release or cargo build -r

  • Building and Running a Cargo Project: cargo run cargo run --release or cargo run -r

  • Reload automatically when I change source code: cargo watch -x run


Install Enviroment

https://visualstudio.microsoft.com/visual-cpp-build-tools/

https://www.rust-lang.org/

https://rocket.rs/

Cargo uses conventions for file placement to make it easy to dive into a new Cargo package:

├── Cargo.lock
├── Cargo.toml
├── src/
│ ├── lib.rs
│ ├── main.rs
│ └── bin/
│     ├── named-executable.rs
│     ├── another-executable.rs
│     └── multi-file-executable/
│         ├── main.rs
│         └── some_module.rs
├── benches/
│   ├── large-input.rs
│   └── multi-file-bench/
│       ├── main.rs
│       └── bench_module.rs
├── examples/
│   ├── simple.rs
│   └── multi-file-example/
│       ├── main.rs
│       └── ex_module.rs
└── tests/
    ├── some-integration-tests.rs
    └── multi-file-test/
        ├── main.rs
        └── test_module.rs

  • Cargo.toml and Cargo.lock are stored in the root of your package (package root).
  • Source code goes in the src directory.
  • The default library file is src/lib.rs.
  • The default executable file is src/main.rs.
    • Other executables can be placed in src/bin/.
  • Benchmarks go in the benches directory.
  • Examples go in the examples directory.
  • Integration tests go in the tests directory.

If a binary, example, bench, or integration test consists of multiple source files, place a main.rs file along with the extra modules within a subdirectory of the src/bin , examples, benches, or tests directory. The name of the executable

will be the directory name.

You can learn more about Rust's module system in the book.

See Configuring a target for more details on manually configuring targets. See Target auto-discovery for more information on controlling how Cargo automatically infers target names.

TypeScript, GraphQL, Apollo, React & Next.js

yarn yarn watch yarn server

Migrations Database trên môi trường Productions

https://typeorm.io/using-cli#using-cli

yarn typeorm migration:generate -n Initialise

Di chuyển file vừa tạo vào trong folder migrations

heroku login heroku create

heroku addons

documentation's People

Contributors

kukunks avatar

Watchers

Hồ Hải Nghĩa avatar

documentation's Issues

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.