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
Please write a high-level description of the changes made by your pull request and if
4
-
possible include references to related GitHub issues and other pull requests, for example:
3
+
Please provide a high-level description of the changes made by your pull request. If possible, reference related GitHub issues or other pull requests. For example:
5
4
6
5
Fixes #123
7
6
Resolves #254
8
7
See also #23
9
8
10
9
-->
11
10
12
-
#### Type of change
11
+
<!-- After creating your PR, please check the relevant options below -->
13
12
14
-
<!-- After your PR is created, please tick the relevant options below -->
15
-
16
-
-[ ] Bug fix (non-breaking change which fixes an issue)
17
-
-[ ] New feature (non-breaking change which adds functionality)
18
-
-[ ] Breaking change (changes that require a fresh clone of the repo)
The code for [dzcode.io](https://dzcode.io), a website for Algerian open-source community.
5
+
The code for [dzcode.io](https://dzcode.io), a website for the Algerian open-source community.
6
6
7
7
**Apps:**
8
8
9
-
-[`./web`](./web) ( [dzcode.io](https://dzcode.io) or [stage.dzcode.io](https://stage.dzcode.io) )
10
-
- lighthouse results are in: [lh.dzcode.io](https://lh.dzcode.io) and [lh-stage.dzcode.io](https://lh-stage.dzcode.io)
11
-
-[`./api`](./api) ( [api.dzcode.io](https://api.dzcode.io) or [api-stage.dzcode.io](https://api-stage.dzcode.io) )
9
+
-[`./web`](./web) ([dzcode.io](https://dzcode.io) or [stage.dzcode.io](https://stage.dzcode.io))
10
+
-[`./api`](./api) ([api.dzcode.io](https://api.dzcode.io) or [api-stage.dzcode.io](https://api-stage.dzcode.io))
12
11
13
-
**Packages**
12
+
**Packages:**
14
13
15
14
-[`./data`](./data)
16
15
-[`./packages/models`](./packages/models)
@@ -19,26 +18,26 @@ The code for [dzcode.io](https://dzcode.io), a website for Algerian open-source
19
18
20
19
## Get Started
21
20
22
-
### Perquisites
21
+
### Prerequisites
23
22
24
23
Make sure you have:
25
24
26
25
-[Git](https://git-scm.com/)
27
-
-[Nodejs](https://nodejs.org/) version 20 or higher (we recommend using [volta](https://docs.volta.sh/guide/getting-started) over plain install or [nvm](https://github.com/nvm-sh/nvm))
26
+
-[Node.js](https://nodejs.org/) version 20 or higher (we recommend using [volta](https://docs.volta.sh/guide/getting-started) over a plain install or [nvm](https://github.com/nvm-sh/nvm))
28
27
-[Docker](https://www.docker.com/) installed and running.
In [`./api`](./api), keep in mind that you have limited calls to Github Api (60 calls per hour), the [FetchService](./api/src/fetch/service.ts) is doing a great job at caching theses calls so it doesn't unnecessarily consume Github API quota. If you wish to extend the limit from 60 to 5000, simply create a [Github Personal Access Token](https://github.com/settings/tokens) (make sure it has `Access public repositories` checked), and set it in `./api/.env` like this:
55
+
- For the API server, go to <http://localhost:7070>
56
+
- For the web server, go to <http://localhost:8080>
57
+
- For the search server, go to <http://localhost:7700>
71
58
72
-
```.env
73
-
GITHUB_TOKEN=Paste_You_Token_Here
74
-
NODE_ENV=development
75
-
```
76
-
77
-
### Run e2e locally
78
-
79
-
Make **sure** you are in the project **root**, then:
80
-
81
-
- run web e2e tests by:
82
-
83
-
```sh
84
-
cd web && npm run e2e:dev
85
-
```
59
+
Please check the README.md files inside `./api` and `./web` for more info.
86
60
87
61
## Contributing
88
62
89
-
To get started see [the contributing guidelines](https://github.com/dzcode-io/dzcode.io/blob/main/.github/CONTRIBUTING.md).
63
+
To get started, see [the contributing guidelines](https://github.com/dzcode-io/dzcode.io/blob/main/.github/CONTRIBUTING.md).
90
64
91
65
If you use VSCode, please make sure to have a `.vscode/settings.json` file with the content:
92
66
@@ -107,13 +81,13 @@ If you use VSCode, please make sure to have a `.vscode/settings.json` file with
107
81
108
82
### Before You Create a Pull Request
109
83
110
-
- If you already forked the repository, please make sure your fork is up-to-date, following [this simple steps](https://www.dzcode.io/Learn/Git_Basics/Syncing_An_Old_Forked_Repository_With_Upstream).
111
-
- Please make sure your code follows the style guideline defined in this repo, for that simply run `npm run lint:fix` to ensure the conformity. This process should happen automatically whenever you commit your changes, but you can always do it manually when your Pull Request checks are failing due to linting errors.
84
+
- If you already forked the repository, please make sure your fork is up-to-date by following [these simple steps](./data/models/documentation/Git_Basics/Syncing_An_Old_Forked_Repository_With_Upstream/content.md).
85
+
- Please make sure your code follows the style guidelines defined in this repo. Simply run `npm run lint:fix` to ensure conformity. This process should happen automatically whenever you commit your changes, but you can always do it manually if your Pull Request checks are failing due to linting errors.
Copy file name to clipboardExpand all lines: api/README.md
+20-12Lines changed: 20 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,30 @@
2
2
3
3
## Folder structure
4
4
5
-
The app is split into modules, each module (any folder directly under `api/src`) can have service(s) and/or controller(s)
5
+
The app is split into modules. Each module (any folder directly under `api/src`) can have service(s) and/or controller(s).
6
6
7
-
- example of a service is [./src/github/service.ts](./src/github/service.ts)
8
-
- example of a controller is [./contributor/controller.ts](./contributor/controller.ts)
9
-
10
-
There is still temporary old code inside:
11
-
12
-
-[./src/app/controllers](./src/app/controllers)
13
-
-[./src/app/loaders](./src/app/loaders)
14
-
-[./src/app/routes](./src/app/routes)
15
-
-[./src/app/services](./src/app/services)
7
+
- An example of a service is [./src/github/service.ts](./src/github/service.ts).
8
+
- An example of a controller is [./contributor/controller.ts](./contributor/controller.ts).
16
9
17
10
## Dependency injection
18
11
19
-
We use typedi for dependency injection, please check their docs.
12
+
We use typedi for dependency injection. Please check their documentation.
20
13
21
14
We use it in both services and controllers.
22
15
23
-
**Note:** if the readme is still unclear, please create a PR with your suggested changes/additions
16
+
## The `.env` file
17
+
18
+
At a minimum, you need a `.env` file with this content:
19
+
20
+
```.env
21
+
NODE_ENV=development
22
+
```
23
+
24
+
Keep in mind that you have limited calls to the GitHub API (60 calls per hour). The [FetchService](./api/src/fetch/service.ts) does a great job of caching these calls so it doesn't unnecessarily consume the GitHub API quota. If you wish to extend the limit from 60 to 5000, simply create a [GitHub Personal Access Token](https://github.com/settings/tokens) (make sure it has `Access public repositories` checked), and set it in `./api/.env` like this:
25
+
26
+
```.env
27
+
GITHUB_TOKEN=Paste_Your_Token_Here
28
+
NODE_ENV=development
29
+
```
30
+
31
+
**Note:** If the README is still unclear, please create a PR with your suggested changes/additions.
Copy file name to clipboardExpand all lines: data/models/documentation/Getting_Started/content.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,6 @@ So, you already master or have enough knowledge about a specific topic in IT? yo
24
24
25
25
## Have Other general suggestions?
26
26
27
-
Feel free to reach out to [[email protected]](mailto:[email protected]) or create an issue in [dzcode.io repository](https://github.com/dzcode-io/dzcode.io), or chat with the community members on [Slack workspace](https://join.slack.com/t/dzcode/shared_invite/zt-ek9kscb7-m8z_~cBjX79l~uchuABPFQ).
27
+
Feel free to reach out to [[email protected]](mailto:[email protected]) or create an issue in [dzcode.io repository](https://github.com/dzcode-io/dzcode.io), or chat with the community members on [Discord](https://discord.gg/TGbPsSMJC2).
0 commit comments