mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-17 01:17:36 +00:00
Simple getting started doc (#91)
* simple getting started doc * Swap Old Ubuntu and Solc * Fixes indents and removes OS preferences * drops indents from code blocks
This commit is contained in:
parent
c53e7ad6c7
commit
74e2d230e8
1 changed files with 59 additions and 0 deletions
59
docs/Getting Started.md
Normal file
59
docs/Getting Started.md
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
# Getting Started
|
||||||
|
|
||||||
|
## Clone Serai
|
||||||
|
```
|
||||||
|
git clone https://github.com/serai-dex/serai.git
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build and Run Serai
|
||||||
|
|
||||||
|
### Install Rust
|
||||||
|
|
||||||
|
#### Linux
|
||||||
|
```
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Windows
|
||||||
|
|
||||||
|
Use WSL2 and Linux instructions.
|
||||||
|
|
||||||
|
|
||||||
|
#### Mac
|
||||||
|
|
||||||
|
```
|
||||||
|
brew install rustup
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install Solidity Compiler
|
||||||
|
```
|
||||||
|
sudo pip3 install solc-select
|
||||||
|
solc-select install 0.8.16
|
||||||
|
solc-select use 0.8.16
|
||||||
|
```
|
||||||
|
### Install Other Dependencies
|
||||||
|
```
|
||||||
|
sudo apt-get install -y \
|
||||||
|
cmake \
|
||||||
|
libboost-all-dev \
|
||||||
|
pkg-config \
|
||||||
|
libssl-dev
|
||||||
|
```
|
||||||
|
|
||||||
|
### Build
|
||||||
|
```
|
||||||
|
cd serai
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run
|
||||||
|
```
|
||||||
|
./target/release/serai-node --chain dev
|
||||||
|
OR
|
||||||
|
./target/release/serai-node --dev
|
||||||
|
```
|
||||||
|
|
||||||
|
### Help
|
||||||
|
```
|
||||||
|
./target/release/serai-node --help
|
||||||
|
```
|
Loading…
Reference in a new issue