当前位置:网站首页>Learning golang website development technology course (outline) from scratch

Learning golang website development technology course (outline) from scratch

2020-12-07 12:40:15 The simplicity of developing small programs

There are a lot of golang Development tutorial , They are all from the most basic installation environment 、golang Grammar begins with , For a little white , He's helpful . But as we all know , Blindly accept learning , It's a boring and suffocating process . More often than not , It's over after learning , It's time to forget 、 Most of what should not be forgotten has been forgotten , I didn't learn according to my actual needs , Most of them don't have deep memories . In order to break this inefficient learning process , I'm going to start here , Introduce a learning style with needs .

Preface :

Why learn go Language ,golang What are the advantages of ?

Extended learning -golang The download 、 Installation and environment configuration tutorial

Ideas :

actual combat , It's about getting to the point right from the start , The nonsense is omitted here . Before we start , Sort out a requirement first , And then according to the demand, start from scratch ( Take my blog website as an example ).

Study golang Preparation before you start

What kind of blog do I need ? Think about the features I need for my blog

Show my ideas , A mind map for my blog

Let me show my idea more intuitively , Draw a simple prototype for my blog

Turn ideas into computer-readable designs , Design a database for my blog based on the idea

My blog may need to apply technology selection and collation

Extended learning -golang Basic syntax and common development tools

Basic configuration :

Build project , Develop a directory hierarchy for my blog project

My blog project configuration file data and configuration read and write processing

First use golang, Create a project portal , Use iris Framework run project

Blog access path routing configuration and controller

Choose the right front-end template engine for your blog site project

Extended template engine function , Add custom functions to the template engine

gorm Use , Database connection and configuration

Data sheets and golang Structure Association and mapping relationship processing

Blog middleware configuration

Blog controller function

The format syntax of blog template and how the back end transfers data to template logic

Blog 404 Error blocking and error output

golang Program internal error handling and error output

Blog function article

Blog initialization processing

Administrator registration and judgment

session Use , Administrator login and authority control

Read variables and form data processing

The design page of article publishing is compiled

The article creates and modifies and stores the data to the database processing

Article classification creation and modification and article Association processing

Article image upload and generate thumbnail processing

golnag Version of dom Handle , Automatic extraction of article descriptions

The article details how to browse and record the number of visits

Reading and display of article list and classification screening display processing

Get the last one 、 The logic of the next article

Article screening , Get the list of adjacent articles according to the article classification

Article screening , Get the logic and implementation of popular articles

Article screening , Get the logic and implementation of the latest article

Page turning of the article , The list is calculated and displayed on the previous page and the next page

seo Optimize the work , Set up... For articles and pages tdk(title,keywords,description)

Extended learning :iris Framework introduction and use skills

System improvement :

Add a management background to my blog , Backstage function design and display

seo Optimize the work , Website sitemap Generation processing of

seo Optimize the work , Baidu and other search engines automatically push logic and Implementation

Guaranteed operation , Start the blog with an elegant overload

seo Optimize the work ,pc Adaptive adaptation between mobile and mobile terminals

Add a list of pictures to the article , Article thumbnail extraction processing

seo Optimize the work ,robots Configure and manage

Extended learning - Production environment deployment and blog system release online

Enterprise website :

Design and implementation of transforming blog into enterprise station

Personalized content display , The logic and implementation of custom classification template

The design and implementation of article reviews

Design and implementation of website message

page url Rewriting and pseudo static transformation

seo Optimize the work , Speed up the design and use of display page cache

seo Optimize the work , Principle and implementation of automatic keyword extraction function

seo Optimize the work , Automatic anchor text function principle and implementation

seo Optimize the work , Content material management and pseudo original function principle realization

seo Optimize the work , Content aggregation and tag Design and implementation of tags

Expand the article function , Add and filter the article parameters

seo Work , Be informed of website inquiry in time , The realization of message automatic email reminder function

Extended learning - How to use golang To promote the enterprise station seo level

Content collection :

Rich website content , Collection of articles and automatic pseudo original function

Speed up acquisition , Asynchronous parallel execution of tasks

Get content sources , Analyze and extract page links

Collect random code Terminator , Automatically recognize web page coding and transcoding as utf-8 code

No repetition of regular expressions , Automatic analysis and extraction of article title

Lazy people collect the best treasure , The logic principle and implementation of automatic analysis and extraction of the content of the article

In for a penny, in for a pound , Take laziness to the extreme , Scheduled task collection and automatic release

Extended learning - Regular expression learning and crawler research and learning

Shopping mall :

The overall design and functional thinking of the mall

The idea of the mall further expresses , Draw a mind map of the mall

Turn ideas into computer-readable designs , Design store data sheet

Multi specification processing of goods , goods sku The principle and design of

Processing of goods orders

The design of the second kill function and the application of queue

The design idea and implementation of lottery function

Extended learning -redis Cache optimization and performance improvement exploration

Advanced applications :

* Add video support to blog posts , Video block upload and play

* Separate static resources to third-party storage , The use of Tencent cloud storage

* Optimize upload speed , The logic and implementation of picture miaozhuan

* High concurrency processing load balancing configuration and implementation

Problem finding chapter :

Troubleshoot problems , The location of the problem

Troubleshoot problems , Log

golang Common problems in development

Extended learning - How to ask questions and ask for help effectively

Small program :

Applet making

Small program interface development

taro To configure

Small program page writing

Applet testing

Generate multi platform applet code

Publish applet

Extended learning -taro Syntax and configuration

The sample code for this tutorial is stored in the GitHub, If you want to see the full code , You can visit :https://github.com/fesiong/go...
golang Discussion on development technology , Join the discussion group , Can add my micro signal : no_reg

版权声明
本文为[The simplicity of developing small programs]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/202012071236476598.html