Skip to content

SunSat/blockchain-xpring-4js

Repository files navigation

node-express-mongoose-passport-jwt-rest-api-auth-xrp

Before run this example, make sure you have installed and running MongoDB.

Step to run locally:

  • Clone this repo
  • Run 'npm install'
  • Run 'npm start'

Steps to download and install mangodb. If your mac user it will be easy

  1. brew tap mongodb/brew
  2. brew install mongodb-community@4.2

Or Download the bin file and extract it on a folder

This will create following 3 files. the configuration file (/usr/local/etc/mongod.conf) the log directory path (/usr/local/var/log/mongodb) the data directory path (/usr/local/var/mongodb)

to start mangodb cd path_to_mangodb/mongodb-macos-x86_64-4.2.3/bin

mongod --dbpath ~/data/db