Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/karna41317/hello_react_mongodb
- Owner: karna41317
- Created: 2015-05-27T14:40:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-27T14:43:21.000Z (over 9 years ago)
- Last Synced: 2024-11-06T23:07:38.376Z (about 2 months ago)
- Language: JavaScript
- Size: 7.04 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.jsRun these commands in root/data directory to create the database.
--------------
Run in seperate processesmongod --dbpath .
mongoimport --db journal --collection entries --file ../journal.json --jsonArrayStart web server from root directory.
--------------
node server
open http://localhost:3000Extra: Build Process for Development
--------------
browserify -t [ reactify --es6 ] main.js -o bundle.js