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
Copy file name to clipboardExpand all lines: README_en.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,12 @@
1
-
## Introduction
1
+
<palign="center">
2
+
<imgsrc="docs/img/2024-08-14_en.png"/>
3
+
<br><ahref="README.md">中文</a> | English
4
+
<br>HelloGitHub is a platform for discovering and sharing beginner-friendly open source projects<br>
5
+
</p>
6
+
7
+
"Geese" translated as "Jinghong" (meaning a fleeting glimpse), embodies a light and swift form, aiming to provide you with a "Jinghong"-like browsing experience through its refreshing and minimalist interface.
2
8
3
-
"Geese," translated as "Jinghong" (meaning a fleeting glimpse), embodies a light and swift form, aiming to provide you with a "Jinghong"-like browsing experience through its refreshing and minimalist interface.
9
+
## Introduction
4
10
5
11
I wanted to create a home for those who enjoy open-source projects, so I built a lightweight open-source community using Next.js and Tailwind CSS. This repository contains the source code for the [HelloGitHub](https://hellogithub.com/) Community.
6
12
@@ -27,4 +33,4 @@ Development guidelines can be found [here](../content.md). Thanks to every [cont
<arel="license"href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh"><imgalt="知识共享许可协议"style="border-width: 0"src="https://licensebuttons.net/l/by-nc-nd/4.0/88x31.png"></a><br>This work is licensed under a <arel="license"href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>.
36
+
<arel="license"href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh"><imgalt="知识共享许可协议"style="border-width: 0"src="https://licensebuttons.net/l/by-nc-nd/4.0/88x31.png"></a><br>This work is licensed under a <arel="license"href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>.
Firstly, the project utilizes yarn for package installation, which you can search for and install on your own. After installation is complete, set the version number with the command `yarn set version v1.22.19`.
4
+
5
+
Next, to get the 'Geese' project running locally, follow these detailed steps:
6
+
7
+
1. Clone the project: `git clone [email protected]:HelloGitHub-Team/geese.git`
8
+
2. Install dependencies: `yarn install`
9
+
3. Run the project: `yarn dev`
10
+
4. Access in the browser: `http://localhost:3000/`
11
+
12
+
Potential issues you may encounter after starting up:
13
+
14
+
1. CORS issue: Please check that the front-end service is started on port `3000` with the host as `localhost` or `127.0.0.1`.
15
+
2. Images not displaying: Add `127.0.0.1 dev.hg.com` to the end of your local hosts file, then access `http://dev.hg.com:3000/`.
16
+
3. Login status: Obtain a test environment login token from @521xueweihan, then manually add an Authorization: token item to the browser's LocalStorage.
17
+
4. If the machine freezes during build, you can resolve this by setting the concurrency number with yarn: `yarn config set cloneConcurrency 1`.
Finally, find the API documentation here: [API Docs](https://frp.hellogithub.com/docs#)
28
+
29
+
After getting the project running, you can play around with it locally. If you find it interesting, [click here](https://github.com/orgs/HelloGitHub-Team/projects/1/views/1) to check out the unclaimed requirements, find a feature, bug, or optimization that interests you, and then let @521xueweihan know 'claim the task' under the corresponding issues before starting development to **prevent duplicate development**.
30
+
31
+
## During Development
32
+
33
+
Since this is collaborative development, the `main` branch may be continuously updated. Before each development session, you need to pull the latest code to ensure you are developing based on the most recent `main` branch.
34
+
35
+
When developing specific requirements, split the code into corresponding directories:
36
+
37
+
- Components: `components` directory
38
+
- Pages: `pages` directory
39
+
- Define data: `types` directory
40
+
- Requests: `services` directory
41
+
42
+
After completing feature development/bug fixes, you need to perform self-testing, check code style, and improve code reusability.
43
+
44
+
Finally, execute the following commands locally and try to resolve any **warnings** you can:
45
+
46
+
-`yarn lint:fix`
47
+
-`yarn lint`
48
+
-`yarn typecheck`
49
+
50
+
## After Development
51
+
52
+
Get the latest `main` branch code and resolve conflicts locally.
53
+
54
+
For your first code submission, you need to submit it via a PR (Pull Request).
55
+
56
+
After your code is successfully merged, @521xueweihan will invite you to become a member of the 'Geese' project. Please check your GitHub notification emails.
57
+
58
+
For subsequent code submissions, you can develop in a 'self-created branch' or a branch automatically created when 'claiming a requirement.'
59
+
60
+
After submitting your code, please pay attention to the project's **issues** and **prs** notifications because I will provide feedback and optimization suggestions after reviewing the submitted code.
61
+
62
+
## Finally
63
+
64
+
I am very happy to build 'Geese' with you and hope that you also gain something from the process of contributing code.
0 commit comments