Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 677 Bytes

README.md

File metadata and controls

50 lines (33 loc) · 677 Bytes

Getting Started

Prerequisites

  • Node.js
  • Serverless CLI

Environment Variables

Define these environment variables in serverless.env.yml file

dev:
  NODE_ENV
  MONGODB_URI
  MONGODB_DATABASE
  MONGODB_INVOICES_COLLECTION
  MONGODB_CLIENTS_COLLECTION

test:
  NODE_ENV
  MONGODB_URI
  MONGODB_DATABASE
  MONGODB_INVOICES_COLLECTION
  MONGODB_CLIENTS_COLLECTION

prod:
  NODE_ENV
  MONGODB_URI
  MONGODB_DATABASE
  MONGODB_INVOICES_COLLECTION
  MONGODB_CLIENTS_COLLECTION

Setup Project

  • npm install
  • serverless deploy -s dev

Tests

Run the tests using npm test

Linting

Run linting using ./node_modules/.bin/eslint "**/*.js"