]> Untitled Git - lemmy.git/blob - docs/src/contributing.md
Updating code url references to https://github.com/LemmyNet/lemmy
[lemmy.git] / docs / src / contributing.md
1 # Contributing
2
3 Information about contributing to Lemmy, whether it is translating, testing, designing or programming.
4
5 ## Issue tracking / Repositories
6
7 - [GitHub (for issues)](https://github.com/LemmyNet/lemmy)
8 - [Gitea](https://yerbamate.dev/dessalines/lemmy)
9 - [GitLab](https://gitlab.com/dessalines/lemmy)
10
11 ## Translating
12
13 Check out [Lemmy's Weblate](https://weblate.yerbamate.dev/projects/lemmy/) for translations.
14
15
16 ## Architecture
17
18 ### Front end
19
20 - The front end is written in `typescript`, using a react-like framework called [inferno](https://infernojs.org/). All UI elements are reusable `.tsx` components.
21 - The main page and routing are in `ui/src/index.tsx`.
22 - The components are located in `ui/src/components`.
23
24 ### Back end
25
26 - The back end is written in `rust`, using `diesel`, and `actix`.
27 - The server source code is split into main sections in `server/src`. These include: 
28   - `db` - The low level database actions.
29     - Database additions are done using diesel migrations. Run `diesel migration generate xxxxx` to add new things.
30   - `api` - The high level user interactions (things like `CreateComment`)
31   - `routes` - The server endpoints .
32   - `apub` - The activitypub conversions.
33   - `websocket` - Creates the websocket server. 
34
35 ## Linting / Formatting
36
37 - Every front and back end commit is automatically formatted then linted using `husky`, and `lint-staged`.
38 - Rust with `cargo fmt` and `cargo clippy`.
39 - Typescript with `prettier` and `eslint`.