This is a boiler plate repo for starting a project with MERN stack
The client side files are cloned from https://github.com/StephenGrider/ReduxSimpleStarter
- install dependencies
npm install
- run webpack and development server at localhost:8080
npm start
alternatively, run webpack itself to generate a bundle.js file
webpack
- install dependencies
npm install
- run server to serve static files in the client folder
node server.js
An example api point is setup to communicate with MongoDB
start running a MongoDB instance
mongod
Connect to the mongoDB directly in terminal
mongo
to see mongodb processes that are running
ps -ax | grep mongo
basic mango shell commands
show dbs
use [db name]
show collections
use [collection names]
db.[collection name].find()