当前位置:网站首页>Halo open source project learning (I): project launch
Halo open source project learning (I): project launch
2022-04-22 17:50:00 【Illusory private school】
High quality resource sharing
| Learning route guidance ( Click unlock ) | Knowledge orientation | Crowd positioning |
|---|---|---|
| 🧡 Python Actual wechat ordering applet 🧡 | Progressive class | This course is python flask+ Perfect combination of wechat applet , From the deployment of Tencent to the launch of the project , Create a full stack ordering system . |
| Python Quantitative trading practice | beginner | Take you hand in hand to create an easy to expand 、 More secure 、 More efficient quantitative trading system |
Catalog
Project brief introduction Project Download Premise setting Start project
Project brief introduction
Halo Is an excellent open source blog publishing application , stay GitHub Well received in Shanghai , I happen to be practicing blogging recently , Take this to record your study Halo The process of .
Project Download
from GitHub Pull up Project source code ,Halo from 1.4.3 Start , Minimum supported JRE Version is 11, What I download is 1.4.13 edition .
Premise setting
Import the project
because Halo Use Gradle structure , So in idea Import Gradle project , And Maven Different ,Gradle The project depends on build.gradle Add .
Halo The following dependencies are mainly used in :
- Spring Boot: One to simplify Spring A new framework for the construction and development process of ;
- Spring Data JPA: Persistence layer frame ;
- Spring Web: structure Web application ;
- Undertow: High performance Web Containers ;
- Freemarker: template engine ;
- H2 Database: embedded database , No installation required ;
- MySQL: Relational database ;
- Lombok:Java Efficient development tools ;
- Swagger: Generate interface document ;
- Hutool: Open source Java Tool class ;
- Qiniuyun : Cloud storage server ;
- Alibaba cloud OSS: For amounts 、 Security 、 Low cost 、 Highly reliable cloud storage services ;
- Flexmark: take Markdown Turn into HTML.
ieda Set up
Halo It uses JDK 11, So we need to idea Medium JDK The version is set to JDK 11. In turn, click File -> Project Structure -> Project SDK Set up JDK.

Gradle It also needs to be set to JDK 11, In turn, click File -> Settings -> Search for Gradle Set up JDK.

Start project
matters needing attention
Please make the following preparations before starting the project :
- Make sure JDK The version of meets the requirements , This article USES the JDK 11;
- Ensure that all dependencies are imported properly ( No exception occurred in this practice );
- Make sure resources/templates/themes Directory is not empty , Under normal circumstances, there should be anatole Folder . Is empty because of the use of Git When cloning, there is no clone sub module , Can be in Halo Theme warehouse on the official website download Anatole The theme , Unzip and rename to anatole, And copy it to themes Under the table of contents ;
- Halo By default H2 Database, The database does not need to be installed , So you can start the project directly . If you want to use MySQL, You need to in application.yaml Note out in the document H2 Database Configuration of , And add MySQL Related configuration of ( The database name is ‘halodb’):
# MySQL To configure
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: 123456
Run the project
Click on the run , Normal project start , The console prints the following information :

The above information prompts us to visit 127.0.0.1:8090, When you first visit this page , The page will be redirected to the initialization page , Users need to set up bloggers 、 Blog related information , Such as user name 、 Password etc. .

After filling in the information , Click on the install , Then the page will jump to the login page , At this time, the user can log in with the previously set account and password . Log in successfully and enter ‘Halo Dashboard’ page , And the system will automatically create an article ‘Hello Halo!’.‘Halo Dashboard’ The page is the background management page of the blog , For administrator , visit 127.0.0.1:8090/admin You will enter this page ( Login required ).

The home page of the blog can be accessed 127.0.0.1:8090, You can see all the articles published by the blogger on this page .

thus ,Halo The project in idea Successfully started on !
author :John classmate Any reprint is welcome , But be sure to indicate the source . If there is anything wrong with the article and code , Welcome criticism and correction !
版权声明
本文为[Illusory private school]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221742452067.html
边栏推荐
- JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
- Servlet 的继承关系
- 2022年,网传苹果即将发布的新机型iPhone 14 Pro和iPhone 14 Pro Max将会是全新屏幕造型,不再是刘海屏,你对新屏幕造型的iPhone 14期待吗?
- 7. Comparable to JMeter Net pressure measurement tool - crank Summary - what does crank bring
- Initiated the establishment of wave field joint reserve, and sun Yuchen launched a "challenge" to the Federal Reserve
- 如何快速接入直播服务 七牛云企业直播解决方案来了
- Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]. StandardContext
- CISP-PTE SQL注入 进阶篇之实战模拟
- Inventory 6 open source projects of Niuniu
- 软考高项笔记 | 需求分类
猜你喜欢

The security configuration method of remote terminal service (3389) does not need public network IP, and realizes external network access to remote desktop in three steps

Soft test advanced item notes | software integration technology

Common libraries for video playback

京东一面:子线程如何获取父线程 ThreadLocal 的值?我蒙了。。。

Soft test advanced item notes | soft skills
![[C language] getchar() function buffer](/img/87/60d35b70b7ccab72ad857178672e4c.jpg)
[C language] getchar() function buffer

知乎在港上市破发是必然:周源被“打脸”,增长极其依赖营销

Characteristics of soft test high item notes | items

一文了解进程及其通信方法

VSCODE + PHP Debug + 名字空间指引
随机推荐
This is perhaps the most detailed summary of machine learning model fusion methods
Notes on soft test high items | steps of feasibility study
7. Comparable to JMeter Net pressure measurement tool - crank Summary - what does crank bring
DOM的综合应用的例子--点击加一和减一
JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
S7-1500 specific methods and steps of data exchange between CPU and OPC UA server through OPC UA client
Notes on soft test high items | six elements of national information system
软考高项笔记 | 项目进度管理
L1-025 正整数A+B (15 分)
Why are you so tired to be a programmer?
软考高项笔记 | PERT 三点估算
With the increasing abundance of e-book products, iFLYTEK intelligent office book is still an ideal choice
文章推荐 2022.4.18
软考高项笔记 | 收集需求的工具与技术
Multithreading notes | compare thread and runnable
How does the usdd anchored to the US dollar lead the transformation of digital currency
为什么智能手机传感器市场一直是索尼占主导
ESP32以太网吞吐性能峰值挑战测试笔记
Soft test high item notes | PERT three-point estimation
Cisp-pte SQL injection advanced level bypass bypass skills