You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+70-3Lines changed: 70 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,74 @@
2
2
3
3
Thank you for your interest in contributing to MetaSSR! We welcome contributions from the community to help improve and expand the framework. Please follow the guidelines below to ensure your contributions are effective and align with the project's goals.
4
4
5
+
## Table of contents
6
+
-[Development Setup](#development-setup)
7
+
-[How to Contribute](#how-to-contribute)
8
+
9
+
## Development Setup
10
+
11
+
To set up your development environment for MetaSSR, choose one of the following methods based on your preferences and system configuration:
12
+
13
+
### Nix Flake (Recommended)
14
+
15
+
The fastest way to get started with a fully configured development environment:
16
+
17
+
1.**Install Nix** (if not already installed):
18
+
```bash
19
+
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
2. Run: `docker run --rm -it metacall/metassr:dev bash`
43
+
-->
44
+
45
+
### Manual Installation
46
+
47
+
If you prefer to set up dependencies manually:
48
+
49
+
1.**Install Rust Toolchain**:
50
+
```bash
51
+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
52
+
source~/.cargo/env
53
+
```
54
+
55
+
2.**Install MetaCall Runtime**:
56
+
```bash
57
+
curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh
58
+
```
59
+
60
+
3.**Clone and Build**:
61
+
```bash
62
+
git clone https://github.com/metacall/metassr.git
63
+
cd metassr
64
+
cargo build --release
65
+
```
66
+
67
+
4.**Verify Installation**:
68
+
```bash
69
+
cargo test
70
+
./target/release/metassr --help
71
+
```
72
+
5
73
## How to Contribute
6
74
7
75
### 1. Reporting Issues
@@ -36,7 +104,7 @@ To contribute code, follow these steps:
36
104
37
105
```bash
38
106
git add .
39
-
git commit -m "Add feature: Description of the feature"
107
+
git commit -m "feat: Description of the feature"
40
108
```
41
109
42
110
7.**Push Changes**: Push your changes to your forked repository:
@@ -83,7 +151,7 @@ also, you can test one of web applications that located at [tests](../../tests/)
83
151
84
152
**Example:**
85
153
```bash
86
-
$ cargo run --bin metassr-cli -- --root=tests/web-app --debug-mode=all run
154
+
$ cargo run --bin metassr -- --root=tests/web-app --debug-mode=all run
87
155
```
88
156
89
157
@@ -96,4 +164,3 @@ Please adhere to our [Code of Conduct](code-of-conduct.md) while participating i
96
164
If you have any questions or need assistance, feel free to reach out to us through the project's [discussion forum](https://github.com/metacall/metassr/discussions) or open an issue.
0 commit comments