Coder Social home page Coder Social logo

nodeblog's Introduction

nodeblog

简介

  • 使用node+express+mongo实现的个人博客系统,项目使用express处理http请求和路由管理,使用mongo作为数据库,swig作为模板引擎,body-parser处理post数据,使用cookies记录用户登录状态,项目中涉及了创建一个前端博客+后台管理系统的大部分知识。

实现的主要功能

  1. 登录注册页面
  2. 首页分类
  3. 首页文章的分页和文章页面的评论
  4. 后台管理系统中分类的展示,编辑,添加和删除
  5. 后台管理系统中文章的展示,编辑,添加和删除
  6. 其他

未实现的功能

  • koa重构
  • 界面美化
  • 细节打磨

使用步骤

# 安装依赖
yarn

# 启动mongoDB数据库

# 获取镜像ID:
docker images  

# 运行镜像:
docker run -p 27017:27017 -td [imagesID]

#查看是运行成功: 
docker ps

# 添加管理员账号: 
打开robo 3t

#添加管理员账号
{
    "isAdmin" : true,
    "username" : "admin",
    "password" : "admin"
}

# 启动项目
yarn dev

项目截图

博客首页

博客管理后台

License

MIT

Copyright (c) 2018-present, daoket

nodeblog's People

Contributors

daoket 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.