Follow these instructions to set up the project on your local machine. You will install dependencies & compile .proto
files so they can be indexed by your IDE.
If there is no fancy installation method & you can only download a binary, download your binaries & move them into a path like C:\bin
.
Then add C:\bin
to your path
Apply your new settings & reload your terminal with . $PROFILE
(or completely restart your terminal)
Releases | C:\bin |
System Path Variable |
---|---|---|
Ensure you have protoc
installed:
Ensure you have protoc-gen-grpc-web
installed:
Ensure you have protoc-gen-js
installed:
Follow https://www.rust-lang.org/tools/install to install the Rust toolchain.
This will install rustc
(the Rust compiler), cargo
(the Rust package manager), and rustup
(the Rust toolchain
manager).
Follow https://docs.npmjs.com/downloading-and-installing-node-js-and-npm to install npm
.
After installing npm
, run npm install
within the twote-web
directory. This will install of the project's Javascript dependencies.
Generate the Rust code from the proto files:
cargo build
Generate the Javascript code from the proto files:
chmod +x ./scripts/proto.sh && ./scripts/proto.sh
Ensure you have docker
and docker-compose
installed.
There are three primary IDEs for Rust development:
I personally use IntelliJ + Rust.
Once your IDE is installed, simply open the root directory of the project in your IDE.
See README.md for instructions on how to run the server.