If you wish to run this app without installing/running a database, you can easily do so. Read more here.
# Update brew formulae
brew update
# Install MongoDB
brew install mongodb
If you hate MongoDB with a passion and would like to see a postgresql example, check this out!
Note: Make sure you have the directory and its permissions setup (i.e. /data/db
):
sudo mkdir -p /data/db
sudo chown -R `id -u` /data/db
mongod
# Install node modules - this includes those for production and development
# You only need to do this once :)
npm install
# Starts the server with Hot Reloading
# Run webpack through webpack.config.dev.js
npm run dev
Run the commands below for a production build, i.e. what is deployed to Heroku. If you are deploying to Heroku or similar, we assume that you are serving the pages over HTTPS.
# Clean public folder
# Run webpack through webpack.config.prod.js
npm run build
# Start server
## Note: You need MongoDB running
npm start