A light weight blog based on nodejs&&mongodb. this blog mainly built for myself. if you curious about how to build this. you can go there: https://github.com/nswbmw/N-blog.git
- Mongodb
this project use these frameworks or middlewares:
- Express
- EJS
- Multer
how it looks? here to see: https://yipeng.info
my_blog/
├── app.js (for Express)
├── server
│ ├── model
│ ├── route
│ ├── view
│ ├── settings.js
│ └── www
├── public
│ ├── common
│ │ ├── css
│ │ │ ├── lib
│ │ │ ├── plugins
│ │ ├── js
│ │ │ ├── vendors
│ │ │ ├── plugins
│ ├── css
│ ├── js
│ ├── fonts
│ └── img
├── test (todo)
├── package.json
├── humans.txt
├── commit
├── LICENSE.txt
├── README.md
├── robots.txt
└── sitemap.js
git clone https://github.com/pengkobe/my_blog.git
cd blog
npm install
cd server
# you need to start mongodb first.
node www
mongodb config is in settings.js under server/. for your data safety. you must have some security authentication strategy :
module.exports = {
cookieSecret: 'cookie_secret',
db: 'blog',
host: 'locahostlhost',
port: port,
dbUrl:'mongodb:username:pwd//localhost:port/blog?your_options'
};
Released under the MIT Licenses