GithubHelp home page GithubHelp logo

izhaoqing / myblog Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 11.65 MB

由nodejs+express+mongodb+jquery写成的博客网站,支持 markdown 格式

Home Page: http://www.zqblog.top

JavaScript 57.84% HTML 27.03% CSS 15.12%
nodejs blog

myblog's Introduction

博客网站

一个发布博客的网站,使用nodejs + mongodb,前端使用 jquery + less。

地址:www.zqblog.top;

启动

  1. git clone

  2. npm install

  3. 在项目根目录下创建db文件夹,用来存放数据。

  4. 去官网下载mongodb并解压。

  5. 打开终端进入mongodb/bin文件夹,输入./mongod --dbpath=/Users/zhaoqing/Desktop/blog/db --port=27017

  6. 终端进入项目,输入 node app.js

  7. 启动成功,在浏览器中访问 localhost:8088

  8. 进入public目录,输入npm install安装less等依赖,输入gulp watch监听lessjs文件的改动。

其中/Users/zhaoqing/Desktop 为项目存放路径。连接成功后会打印 connection accepted

界面

博客首页

博客详情

使用prettify实现代码高亮。

评论

后台管理

在首页点击后台管理 或访问 localhost:8088/admin可进入后台管理登录页面,样式布局使用bootstrap

博客内容编辑使用markdown语法,可编辑和预览,markdown转html使用HyperDown.js

首页博客分类可增删改。

myblog's People

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.