git clone https://github.com/gmoralesc/photobook-api
npm install
Create a .env
file in the root directory, example:
SERVER_HOSTNAME=127.0.0.1
SERVER_PORT=3000
- Development:
npm run dev
- Production:
npm start
cd ~
mongod --dbpath ~/data/db
git config --global credential.help 'cache t=36000'