Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/karna41317/hello_react_mongodb

Hello World to React
https://github.com/karna41317/hello_react_mongodb

Last synced: 2 days ago
JSON representation

Hello World to React

Awesome Lists containing this project

README

        

Demo of React + react-router with Mongo DB.
==============

Installation instructions
==============

Run this in root directory to install dependencies and create bundle.
--------------
npm install
browserify -t [ reactify --es6 ] main.js | uglifyjs -o bundle.js

Run these commands in root/data directory to create the database.
--------------
Run in seperate processes

mongod --dbpath .
mongoimport --db journal --collection entries --file ../journal.json --jsonArray

Start web server from root directory.
--------------
node server
open http://localhost:3000

Extra: Build Process for Development
--------------
browserify -t [ reactify --es6 ] main.js -o bundle.js