当前位置: 首页 > 软件库 > 云计算 > >

docker-node-mongo-react-STARTER

授权协议 Readme
开发语言 Java
所属分类 云计算
软件类型 开源软件
地区 不详
投 递 者 齐高寒
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

[STARTER] Docker-NodeJS-MongoDB-React

Under the hood

  • NodeJS
  • ExpressJS
  • MongoDB
  • Mongoose
  • ReactJS
  • Webpack
  • Nginx (serving static content compiled by react)
  • Docker
  • docker-compose

Prerequisites

  • Docker
  • Node JS (just to install dependencies)

Everything else will be pulled from Docker/Npm repositories !

Getting Started

# clone repository
$ git clone https://github.com/denisolek/docker-node-mongo-react-STARTER.git
$ cd docker-node-mongo-react-STARTER

First run

# install npm dependencies
$ cd server
$ npm install
$ cd ..
$ cd frontend
$ npm install
$ cd ..
$ docker-compose up

#open second terminal and run seed (every time you execute it destroy DB and make new one)
$ ./seed.sh

Regular run

# run your app (you can stop it with CTRL+C)
$ docker-compose up

# kill containers (DB data will be lost)
$ docker-compose down

In case of problems: denis.olek@gmail.com

 相关资料
  • Official blog post can be found at https://medium.com/@nparsons08/building-a-node-js-powered-api-with-express-mongoose-mongodb-19b14fd4b51e.

  • 一个基于 REACT-CPP 的库,使用 C++ 编写的异步 mongo 访问库。通过使用 lambda 表达式和回调函数的形式来返回查询结果。 这个库的工作原理与普通的 mongo C++ 库基本相同,只是所有函数接受一个 lambda 参数,当结果可用(或失败)时将调用该参数。 示例代码 React::Mongo::Connection mongo("mongodb.example.org",

  • Docker Node Tester(DNT)提供了一个测试平台,Node.js 项目针对 Docker 容器中多个版本的 Node.js 运行,然后以表格方式输出结果。你还可以针对最前沿版本的 Node 进行测试,无论是什么版本。请注意,不同版本的 Node 都是从源代码构建的,这意味着你最后会得到 Node 整个源代码树的本地副本;确保你有足够的空间来存储它。

  • Node + Docker Hello World, for Showing Good Defaults for Using Node.js in Docker This tries to be a "good defaults" example of starting to use Node.js in Docker for local development and shipping to p

  • RESTful API Server Boilerplate Featuring Docker, Node, Express, MongoDB, Mongoose, & NGINX License & Purpose MIT License. This is something I've used in production before with success that I found use

  • auth-flow-spa-node-react User authentication in SPA, built with Node.js and React (Koa, Passport, Redux, Redux-Saga, React Router). Local authentication, where users can log in using a username and pa