"CodeFever nanny-level tutorial" teaches you how to build your own code hosting server

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.

1 声望
0 粉丝
0 条评论
api.openai.com port 443: Connection timed out 你是不在调用 ChatGPT 接口的时候报错 443 了,哈哈哈,我的也是。当小傅哥发现自己开发的《ChatGPT AI 问答助手》已经不工作了,搜索了下为啥会 443 呢,原来是 ...

小傅哥3阅读 1.6k

蚂蚁安全科技 Nydus 镜像加速实践
蚂蚁安全科技 Nydus 镜像加速实践原创 曦栖 金融级分布式架构文|蚂蚁集团 ZOLOZ 团队使用全球领先安全科技,为用户和机构提供安全、便捷的安全风控解决方案。本文 6386 字 阅读 12 分钟背景简介ZOLOZ[1]是蚂蚁集...

SOFAStack1阅读 3.8k

写一个Vue DevTools,让开发体验飞一会
近年来,人们越来越关注开发者体验 (DX)。工具和框架也一直在努力改进 DX,比如这两年光速发展的Vite。在大多数人的印象中,Vite的特点是快,但是在我看来让它发展迅速并在前端构建工具占据一席之地的主要原因是...

null仔2阅读 893


ThinkSNS1阅读 2.4k

最近在GitHub上发现了一个爆火的开源项目。好家伙,凑近一看,居然还是由微软开源,并且和最近炙手可热的ChatGPT息息相关。项目的名字叫做:Visual ChatGPT。[链接]这个项目最早是3月上旬微软开源的,项目宣布开...

CodeSheep2阅读 1.9k

github 和 gitlab 之自定义首页样式
🎈 个性首页相信很多小伙伴在逛 github 和 gitlab 的时候会发现很多开发者的首页异常的炫酷,如 [链接]🎈 制作步骤是不是立马想拥有一个属于自己的高大上主页了从上图中我们可以看出,其实它展示的一个 readme 里面...

tiny极客3阅读 1.9k评论 4


软件部长2阅读 430

1 声望
0 粉丝