Skilled use of GIthub and Git has become an essential skill for every programmer. Github, as a free and easy-to-use code hosting platform, plays a very positive role in the development of the open source community to a large extent. Programmers are better able to manage and maintain their code, enabling more efficient code collaboration among team members.
However, for various reasons, Github's use in China is not very smooth. In China, access speed is often slow or inaccessible. The all-English interface is even more prohibitive for some people. Therefore, building their own private code platform has also become the choice of some developers and teams. In response to this demand, here we recommend the latest open source project from the Dandelion team - CodeFever Community, which is also the code management platform used by the Dandelion team for two years. It has complete and stable functions, and fully considers the usage habits of Chinese enterprises. Efficiency; Secondly, the service is stable, the access speed is fast, and the required hardware configuration is extremely low. Users can quickly master all the functions of the software, which can actually improve work efficiency.
Next, I will introduce you to today's protagonist CodeFever Community in detail.
What is CodeFever Community?
Codefever Community (official website: https://www.codefever.cn .) The project code is 100% open source and free and open. All source code is hosted on GitHub through the MIT license agreement. The built-in perfect code management function helps your team manage code versions efficiently, making every Git code submission, push, pull, merge, and review easier. Clear branch authority management, with protected branches, improve overall security, and team collaboration is standardized and smooth.
The functions and features of CodeFever Community:
🆓 Free forever: Free for everyone forever, you don't need to worry about paying
❤️ Complete open source: Complete open source without reservation, without any compiled or encrypted code
🥬 Lightweight installation: minimalist design style, excluding redundant functions that are heavily redundant
⚡️ Efficient performance: extremely fast speed, extremely low server resource requirements, 1 core CPU/1G memory can run
♾️ Unlimited warehouses: There is no limit on the number of warehouses and the number of warehouses used
⌨️ Code comparison: Supports different versions of submitted code, supports highlighting and comparison
🛤️ Branches and tags: Full support for Git native features, helping to manage code more clearly
🙋♂️ Merge Request: Support multi-person collaboration to make code version control smoother
🙅🏻♀️ Branch protection: The branch protection function makes code submission safe and controllable, and code review is easier and clearer
👥 Multi-person collaboration: Support multi-person team collaboration, and can set the roles and permissions of each member
🖥️ Management background: Support super administrator background, allowing team leaders to manage all projects and user information
Nanny level tutorial:
We go to the github project page of the CodeFever Community https://github.com/PGYER/codefever and drop down to how to install.
CodeFever Community has two installation methods, namely "Docker image installation" and "installation from scratch".
Installation method:
Recommended index ⭐️⭐️⭐️: We recommend that you install directly using the Docker image, which is also the easiest way to install. Using Docker can be done with just one line of commands.
Difficulty Index ⭐️⭐️⭐️: It can also be installed manually if it is for learning, research or customization needs. For details, see the document: https://github.com/PGYER/codefever/blob/master/doc/zh-cn/installation/install_from_scratch.md
Next, we use the Docker image installation method to take you to complete the installation and configuration of CodeFever.
Hardware configuration and requirements:
First you need a linux server
Minimum server configuration: 1-core CPU 1G memory (ps: In order to download resources faster, if it is a new server, Hong Kong nodes are recommended, non-Hong Kong nodes, you can consider configuring accelerators to achieve faster installation speed)
Docker environment installation (please skip this link if you already have a Docker environment):
The first step we need to install on the Docker official website (Docker Documentation | Docker Documentation.
After clicking Download and Install in the middle, select the system of your own server (Linux in the demo)
After entering, select your own operating system installation in the Install - Installation per distro on the left.
Then slide down the page to find Set up the respository, you can see a total of four steps.
First, we open the terminal and connect to our server.
Then follow the above command to copy and paste one by one, and Docker will be installed.
Once installed, try running with sudo docker run hello-world.
If you see this interface, the Docker environment has been installed successfully🎉
2. CodeFever Community installation
Next, we go back to the GitHub page and click on the Docker image installation
After opening the document, note that we first look at the second
This sentence means that we usually use two methods when we use the git repository hosting service to pull or push code: http (port 80) and ssh (port 22).
Then if our Codefever Community uses port 22, then the 22 port of the host needs to be released, otherwise it may conflict, so it is recommended that you change the 22 port of the host to something else, so that you can directly run the above. The command is fine.
(Changed #Port 22 to Port 28888)
Then restart, the connection will fail when reconnecting to the server, this time just add the port number before the IP
This will connect.
This way our port 22 is unused, then we go back to github and start Codefever with sudo in front of the copy command.
Then he will pull the data and install the image himself.
3. New warehouse group and warehouse
After the installation is complete, we can manage our warehouse through the URL mentioned in the first point.
After entering the website, the login page will appear.
We fill in the account number: root@codefever.cn Password: 123456.
We click the management background in the upper right corner to enter the super management background, where we can manage all users of all projects, the warehouse groups established by each user, their login information, and log information, which can be seen here.
Then we see a settings button on the left.
It is recommended that you first change the URL here to your own IP address and domain name, so that you will not make mistakes when cloning the warehouse or push/pull in the future. After saving, go back to the home page and you can try to build the warehouse.
Then we create a new warehouse group and create a new warehouse in the warehouse group named hello
Next, let's test to see if this repository can push code.
First we exit from the terminal and paste the command line by line
Change the localhost in the command line 6 to our own IP address
After completion, it is found that there is no error, then this readme file has been pushed to our remote warehouse.
Let's refresh to see.
That would be a success.
Later, we need to add code or invite users, and we can create a new warehouse group.
The column on the left also supports merging, branching, tagging, and adding members.
At the same time, you can also learn some basic usage procedures from the help document in the upper right corner.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。