Files
fzu-product/.vitepress/dist/assets/技术资源汇总(杭电支持版)_7.网络应用开发_7.3.2进阶部分.md.Cg-7LiyH.js

2 lines
3.4 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as a,c as e,o as t,a4 as o}from"./chunks/framework.DtvhUNIn.js";const b=JSON.parse('{"title":"进阶部分","description":"","frontmatter":{},"headers":[],"relativePath":"技术资源汇总(杭电支持版)/7.网络应用开发/7.3.2进阶部分.md","filePath":"技术资源汇总(杭电支持版)/7.网络应用开发/7.3.2进阶部分.md"}'),r={name:"技术资源汇总(杭电支持版)/7.网络应用开发/7.3.2进阶部分.md"},l=o('<h1 id="进阶部分" tabindex="-1">进阶部分 <a class="header-anchor" href="#进阶部分" aria-label="Permalink to &quot;进阶部分&quot;"></a></h1><p>请先通读后端基础任务文档:</p><p><a href="./7.3.1基础部分.html">基础部分</a></p><p>你可以清晰地感受到,基础任务并不是一个生产可用的服务,它仅可作为一个 DEMO 用于演示。尝试为它的生产部署之路添砖加瓦!</p><div class="warning custom-block"><p class="custom-block-title">📌</p><p>进阶的任务是开放的:在上述要求的基础上,尽可能地拓展即可,无论是功能、性能、架构、代码整洁等等方面都可</p></div><p>下面是一些可拓展的点,可尽情发挥(不局限于这些):</p><ul><li>第三方库集合 (你可以在其中尝试找到你需要的东西)</li></ul><p><a href="https://github.com/avelino/awesome-go" target="_blank" rel="noreferrer">https://github.com/avelino/awesome-go</a></p><p><a href="https://github.com/jobbole/awesome-go-cn" target="_blank" rel="noreferrer">https://github.com/jobbole/awesome-go-cn</a></p><h2 id="扩展接口" tabindex="-1">扩展接口 <a class="header-anchor" href="#扩展接口" aria-label="Permalink to &quot;扩展接口&quot;"></a></h2><p>新增接口,或者丰富已有接口功能,让程序变得更有趣一些</p><h2 id="生产部署" tabindex="-1">生产部署 <a class="header-anchor" href="#生产部署" aria-label="Permalink to &quot;生产部署&quot;"></a></h2><p>把程序运行在本地只能自娱自乐。尝试将程序部署到服务器上,让全世界都能访问你的接口。</p><h2 id="优化存储" tabindex="-1">优化存储 <a class="header-anchor" href="#优化存储" aria-label="Permalink to &quot;优化存储&quot;"></a></h2><p>如果将信息全部放在结构体 (内存) 中,程序关闭后就将丢失已经登录的所有信息,请尝试使用“数据库”为你的服务添加永久存储的能力。</p><h2 id="日志" tabindex="-1">日志 <a class="header-anchor" href="#日志" aria-label="Permalink to &quot;日志&quot;"></a></h2><p>在程序中恰当地输出日志十分重要,这为用户以及开发者提供了回溯错误的能力。</p><h2 id="配置文件" tabindex="-1">配置文件 <a class="header-anchor" href="#配置文件" aria-label="Permalink to &quot;配置文件&quot;"></a></h2><p>每一次修改端口/密码/etc 都需要重新编译程序,使用“配置文件”让程序在启动时能够动态读入想要的内容。</p><h2 id="代码结构" tabindex="-1">代码结构 <a class="header-anchor" href="#代码结构" aria-label="Permalink to &quot;代码结构&quot;"></a></h2><p>尝试对代码进行组织、分层。</p><h2 id="" tabindex="-1">…… <a class="header-anchor" href="#" aria-label="Permalink to &quot;……&quot;"></a></h2>',22),h=[l];function i(n,s,c,p,d,_){return t(),e("div",null,h)}const m=a(r,[["render",i]]);export{b as __pageData,m as default};