Skip to content

Latest commit

 

History

History
111 lines (75 loc) · 2.58 KB

README.md

File metadata and controls

111 lines (75 loc) · 2.58 KB

Ledger Server

Build Status Coverage Status Github license

Ledger logo

Features

Requirements

Getting Started

Initialize project

# Clone the repo
git clone https://github.com/travislang/ledger-server.git
cd ledger-server

# install dependencies
npm install

# set enviornment variables
cp .env.example .env

Running Locally

npm run dev

Running in Production

npm start

Lint

# lint code with ESLint
npm run lint

# try to fix ESLint errors
npm run lint:fix

Testing

# run all tests with Mocha
npm run test

# run unit tests
npm run test:unit

# run integration tests
npm run test:integration

# open nyc test coverage reports
npm run coverage

Validate

# run lint and tests together
npm run validate

Docker

You need to have Docker installed on your system to run docker locally

# run container locally
npm run docker:dev

# run container in production
npm run docker:prod

# run tests
npm run docker:test

License

MIT License - Travis Lang