https://github.com/cfal/comments
An example of a reddit-style comments system, using React and LESS for the frontend, and MongoDB & Koa backend.
https://github.com/cfal/comments
Last synced: 3 months ago
JSON representation
An example of a reddit-style comments system, using React and LESS for the frontend, and MongoDB & Koa backend.
- Host: GitHub
- URL: https://github.com/cfal/comments
- Owner: cfal
- Created: 2016-02-19T23:48:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-19T23:48:39.000Z (over 10 years ago)
- Last Synced: 2025-03-23T17:27:50.139Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Comments Component (React, MongoDB, Koa)
========================================
An example of a reddit-style comments system, using React and LESS for the frontend, and MongoDB & Koa backend.
### Installation and test with [Docker](http://www.docker.com) and [Docker Compose](http://docs.docker.com/compose/)
* Run `docker-compose up` from project root to create and run MongoDB and Nodejs containers with prepopulated comments
* On OSX: `open http://$(docker-machine ip dev):8080`
* On Linux: `open http://localhost:8080`
### Test locally
* Run a MongoDB server
* `npm install` from project root to install dependencies
* `gulp [--production]` to build server & optionally minify client in `out`
* `node out/server/server.js [MongoDB path]` to start the koa server. Default MongoDB path is `localhost/test`
* Populate comments & users with `node scripts/populate.js`