This is a news feed demo, builded in Node.js
Mongodb
, Mongooose
, Express.js
, AngularJS
, Socket.io
, Bootstrap
.
- You need to use tool to insert data into
Mongodb
, this file is dump.js. dump.js will request content from Hacker News. and insert news items intoMongodb
. Or you can click "Add" button on the right of top navbar to add items.
$ node dump.js
- install modules
$ npm install
- start server
$ node app.js
- enter url in your browser
$ 127.0.0.1:3000
.
├── README.md
├── app.js // application stat point
├── config // system config, path, port, name ....
├── public // client directory, angular, bootstrap, views, image, js, css
└── server // server directory, mongoose, socket.io, node.js
public
├── app.js // angular app
├── assets // js, css, image...
├── config.js // system config settings
├── controllers // angluar ...
├── filters
├── models
├── routes
├── services
└── views
server
├── app.js // server start point
├── config // server settings, static path, name...
├── controllers // for Mongodb
├── models // Mongodb Schemas
└── routes // socket.io routes, or url routes.