GithubHelp home page GithubHelp logo

ganluren007 / express-mongodb-vue- Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.31 MB

用express做后台,monngodb做数据库,vue做前端的博客全栈项目

JavaScript 71.77% CSS 24.95% Vue 3.03% HTML 0.24%

express-mongodb-vue-'s Introduction

express+mongoose

应用express+mongoose技术栈写的博客后台系统,包含博客后台管理系统和博客主页展示

功能

  • 用户登录注册 -- 完成
  • 记住密码 token验证 退出登录 -- 完成
  • 管理员对数据分类的增删改查 -- 完成
  • 管理员对博客文章的增删改查 -- 完成
  • 博客首页接口 -- 完成
  • 博客分类查询内容接口 -- 完成
  • 用户头像修改功能 -- 完成

启动步骤

## 启动数据库
安装mongodb数据库后,在server目录里面创建一个db目录,用 mongod  --dbpath=‘db文件夹路径’,启动mongodb

## 启动服务器
#  在server目录中安装后端依赖
npm install
# 在server目录中启动后端服务
npm run dev

## 启动网页
#  在根目录中安装前端依赖
npm install
# 在根目录中启动后端服务
npm run dev

#PS:如果需要进入后台管理系统对内容进行增删该查操作,,需要将用户信息的isadmin改为true,才有权限进入后台页面修改
## 后端server目录文件结构
.                                   
├── models                          数据模型                                                          
│   ├── Cate.js                     分类模型               	
│   ├── content.js                  博客内容模型
│   ├── user.js                 	用户资料模型
├── public                          静态资源
│   ├── css               			css
│   ├── font              			字体文件
│   ├── imgaes              		图片资源
│   └── js              			js
├── router                          路由及相关操作(后续可进行模块分割)
│   ├── admin						后台管理页面路由及相应操作
│   └── api              			博客页面路由及相应操作
├── uploads                         用户上传图片
├── app                   		        入口文件	
├── packjson                       
├── ReadMe                         
.

express-mongodb-vue-'s People

Stargazers

 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.