Giter VIP home page Giter VIP logo

my-blog's Introduction

一个有前后端的博客系统

技术栈为Vue3+Vite+Express+Naive UI+Axios+Typescript。

功能实现:

  1. 使用express框架构建服务端,使用snowflake算法生产id,避免id冲突的问题。
  2. 使用axios封装请求,使用promise.all方法封装多个promise请求
  3. 实现分类表,博客表的增删改查。(使用了sql语句)
  4. 引用token,验证token来进入后台,使用中间拦截器验证登录
  5. 前端实现文章的增删改查。(基本的js逻辑)
  6. 通过后端提供的接口,实现文章详情及文章简略信息的展示
  7. 通过时间库moment.js及js自带对象Date实现发布时间和修改时间的详细记录。

亮点如下:

  1. 使用雪花算法生成唯一的id。,使用SQLite数据库,并使用HeidiSql进行数据库管理。
  2. 实现了登录注册功能,以及基本的增删改查功能,引入Axios来进行网络请求管理。
  3. 使用wangEditor来实现文本编辑功能,使用moment.js来管理时间状态。
  4. 在全局请求配置中,通过import.meta.env.BASE_URL环境变量区分本地和生产环境发送的请求域名,能够根据项目启 动命令自动区分多环境。
  5. 使用Typescript重构项目,类型更加规整化。

my-blog's People

Contributors

fysxaki avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.