Install npm
if you don't already have them installed.
brew install node
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.
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.