Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 7436d62

Browse files
authored
Merge pull request #51 from MelanX/curseforge-service
Add docs for CurseForge service
2 parents 3a8ae72 + 9f84d68 commit 7436d62

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
build/
1+
build/
2+
.idea
3+
.vscode

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# nodecg-io
22

3-
![](assets/header_white.png)
3+
![nodecg-io logo](assets/header_white.png)
44

55
[![Feature Requests](https://img.shields.io/github/issues/codeoverflow-org/nodecg-io/enhancement?label=Feature%20Requests&style=flat-square)](https://github.com/codeoverflow-org/nodecg-io/labels/enhancement)
66
[![Bugs](https://img.shields.io/github/issues/codeoverflow-org/nodecg-io/bug?label=Bugs&style=flat-square)](https://github.com/codeoverflow-org/nodecg-io/labels/bug)
@@ -25,6 +25,7 @@ If that's no problem you can head over to the [installation guide](https://nodec
2525

2626
- [x] AutoHotkey
2727
- [x] Android (using adb)
28+
- [x] CurseForge
2829
- [x] Discord
2930
- [x] IntelliJ IDEs
3031
- [x] IRC (Internet Relay Chat)

docs/samples/curseforge.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Using the CurseForge sample bundle
2+
3+
The CurseForge example bundle in `samples/curseforge` demonstrates the ability to search for different addons with the id or search with specific values for matching addons. Here is a guide how to get it working.
4+
5+
### Prerequisites
6+
7+
- Working NodeCG & nodecg-io installation
8+
9+
### Configure the CurseForge bundle
10+
11+
1. Start NodeCG with with nodecg-io installed. The CurseForge bundle is currently part of it, so it should also be loaded.
12+
2. Login using your password. If this is your first run, then enter the password with which you want to encrypt your configurations and credentials.
13+
3. Create a new CurseForge service instance using the left upper menu.
14+
4. Set the CurseForge service instance to the service dependency of the CurseForge bundle.
15+
Select the CurseForge bundle the the CurseForge service in the left bottom menu and then select the service instance that should be used by the CurseForge bundle (in this case the name of the previously created CurseForge instance).
16+
5. Check the NodeCG logs. You should see two lists of addons.

docs/services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Depends on [get-stream](https://www.npmjs.com/package/get-stream) @ 6.0.0 <br>
3131

3232
**A service to communicate with the CurseForge API.**
3333

34-
There's no sample implementation for this service yet.
34+
See the [sample implementation](samples/curseforge.md)
3535

3636
Depends on [nodecg-io-core](https://github.com/codeoverflow-org/nodecg-io/tree/master/nodecg-io-core) @ ^0.1.0 <br>
3737
Depends on [node-fetch](https://www.npmjs.com/package/node-fetch) @ ^2.6.1 <br>

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ nav:
4949
- Services:
5050
- Available services: services.md
5151
- AHK sample: samples/ahk.md
52+
- Curseforge sample: samples/curseforge.md
5253
- Android: samples/android.md
5354
- Discord sample: samples/discord.md
5455
- IntelliJ sample: samples/intellij.md

0 commit comments

Comments
 (0)