Skip to content
pollseed edited this page Nov 12, 2015 · 1 revision

mac mongodb

一旦ローカルセットアップ手順

brew install mongodb
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist または、 mongod --config /usr/local/etc/mongod.conf

使う

mongo
use fx-dev
db

# insert
db.samples.insert({name: 'test1'})
db.samples.insert({name: 'test2'})
db.samples.insert({name: 'test3'})

# find
db.samples.find()

疎通

git checkout express
npm install
npm start

localhost:3000/viewにアクセスして動けば問題なし

Clone this wiki locally