game-scout-common

0.0.14 • Public • Published

#Game Scout Common Library

Used within the GameScout main code this library provides common code for accessing the DB and cache.

Install

npm install game-scout-common --save

Testing

Prerequisites

  • REDIS running locally
brew install redis
redis-server
  • PostgresDB

To run a local instance of Postgres ....

docker run --name game-scout-pg -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres
docker run --rm -e PGPASSWORD=password --link game-scout-pg:postgres postgres psql -h postgres -U postgres  -c 'CREATE DATABASE game_scout;'

Use the following commands to create the following DB's

psql -c "create database game_scout;"
psql -c "create database game_scout_test;"

And to run the test, the usual npm test

Publish

npm publish

When prompted for OTP enter authenticator associated with lib.
Ensure the version has been updated beforehand.

Readme

Keywords

Package Sidebar

Install

npm i game-scout-common

Weekly Downloads

1

Version

0.0.14

License

MIT

Unpacked Size

23 kB

Total Files

16

Last publish

Collaborators

  • ncashmore