chore(repo): update readme
This commit is contained in:
parent
1c557f6f1f
commit
12b8dbdbdf
1 changed files with 40 additions and 11 deletions
51
README.md
51
README.md
|
@ -1,27 +1,56 @@
|
|||
# SeaCogs
|
||||
|
||||
[](https://discord.gg/eMUMe77Yb8)
|
||||
[](https://seacogs.coastalcommits.com)
|
||||
[](https://seacogs.csw.im)
|
||||

|
||||
|
||||
My assorted cogs for Red-DiscordBot.
|
||||
|
||||
## Development
|
||||
## Developing
|
||||
|
||||
To get started with a development environment, first clone this repository.
|
||||
You'll need some prerequisites before you can start working on my cogs.
|
||||
[git](https://git-scm.com) - [uv](https://docs.astral.sh/uv)
|
||||
Additionally, I recommend a code editor of some variety. [Visual Studio Code](https://code.visualstudio.com) is a good, beginner-friendly option.
|
||||
|
||||
```sh
|
||||
git clone https://coastalcommits.com/cswimr/SeaCogs.git
|
||||
### Installing Prerequisites
|
||||
|
||||
_This section of the guide only applies to Windows systems.
|
||||
If you're on Linux, refer to the documentation of the projects listed above. I also offer a [Nix Flake](./flake.nix) that contains all of the required prerequisites, if you're a Nix user._
|
||||
|
||||
#### [`git`](https://git-scm.com)
|
||||
|
||||
You can download git from the [git download page](https://git-scm.com/downloads/win).
|
||||
|
||||
Alternatively, you can use `winget`:
|
||||
|
||||
```ps1
|
||||
winget install --id=Git.Git -e --source=winget
|
||||
```
|
||||
|
||||
Then, install Poetry.
|
||||
#### [`uv`](https://docs.astral.sh/uv)
|
||||
|
||||
```sh
|
||||
pip install poetry
|
||||
You can install uv with the following Powershell command:
|
||||
|
||||
```ps1
|
||||
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
||||
```
|
||||
|
||||
Finally, use Poetry to create a virtual environment with all of the dependencies required by my cogs.
|
||||
Alternatively, you can use `winget`:
|
||||
|
||||
```sh
|
||||
poetry install
|
||||
```ps1
|
||||
winget install --id=astral-sh.uv -e
|
||||
```
|
||||
|
||||
### Getting the Source Code
|
||||
|
||||
Once you have [`git`](https://git-scm.com) installed, you can use the `git clone` command to get a copy of the repository on your system.
|
||||
|
||||
```bash
|
||||
git clone https://c.csw.im/cswimr/SeaCogs.git
|
||||
```
|
||||
|
||||
Then, you can use `uv` to install the Python dependencies required for development.
|
||||
|
||||
```bash
|
||||
uv sync --frozen
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue