-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into contributors
- Loading branch information
Showing
45 changed files
with
3,533 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,59 @@ | ||
# Go Stark Me - Backend Setup 💻 | ||
|
||
### Steps to Run the Backend 🥳 | ||
## Steps to Run the Backend 🥳 | ||
|
||
1. **Navigate to the Contracts Directory 🔍** | ||
|
||
Ensure you are in the correct directory where the Cairo contracts are stored. | ||
|
||
```bash | ||
cd gostarkme/contracts | ||
2. **Compile gostarkme backend 🛠️** | ||
```bash | ||
scarb build | ||
3. **Run gostarkme unit test ✅** | ||
```bash | ||
snforge test | ||
4. **Run code formatter 📝** | ||
```bash | ||
scarb fmt | ||
``` | ||
|
||
2. **Setup your environment** | ||
|
||
- Scarb v2.6.5 : [here](https://docs.swmansion.com/scarb/download.html#install-via-asdf). | ||
```bash | ||
asdf install scarb 2.6.5 | ||
``` | ||
```bash | ||
asdf global scarb 2.6.5 | ||
``` | ||
- Starknet Foundry v0.27.0: [here](https://foundry-rs.github.io/starknet-foundry/getting-started/installation.html). | ||
```bash | ||
asdf install starknet-foundry 0.27.0 | ||
``` | ||
```bash | ||
asdf install starknet-foundry 0.27.0 | ||
``` | ||
3. **Compile Go Stark Me Backend 🛠️** | ||
|
||
To build the contracts, run the command: | ||
|
||
```bash | ||
scarb build | ||
``` | ||
|
||
4. **Run Go Stark Me Unit Tests ✅** | ||
|
||
To run the unit tests for the contracts, run the following command: | ||
|
||
```bash | ||
scarb run test | ||
``` | ||
or | ||
```bash | ||
snforge test | ||
``` | ||
|
||
5. **Run Code Formatter 📝** | ||
|
||
To format your contracts, simply run the command: | ||
|
||
```bash | ||
scarb fmt | ||
``` | ||
|
||
## UML Diagram | ||
|
||
![UML Class Diagram](https://github.com/user-attachments/assets/479c9296-e3ac-4ad3-bf79-5f458c456a45) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.