/lifo-server

The server portion of the Lifo Service

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Lifo App Server

The server portion of the Lifo Service

Version Build Status Codecov Dependency Status Dev Dependency Status Known Vulnerabilities

Requirements

Install npm if you don't already have them installed.

brew install node
  • If you do not have brew, go here. (Its a macOS only tool)
  • If you cannot use brew, go here.

Installation

Download and install the server.

git clone https://github.com/LifoApp/lifo-server.git
cd lifo-server
npm install

Configure the server with a .env file at the root of the repo, alongside package.json.

DATABASE_URL=postgres://user:password@localhost:5432/db

Alternately, get the most recent .env file from the Lyne Slack. The most recent is from Feb, 9.

Running & Development

Start the server.

npm start

Alternately, start server to auto restart when a file changes, provided by nodemon.

npm run nodemon

Run the tests.

npm test
npm run lint

To view a coverage report, run npm test, then npm run report, then open up coverage/lcov-report/index.html in a web browser.