镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
cfalPublic

About

An example of a reddit-style comments system, using React and LESS for the frontend, and MongoDB & Koa backend.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

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 and Docker 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

About

An example of a reddit-style comments system, using React and LESS for the frontend, and MongoDB & Koa backend.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages