game-scout-common
v0.0.14
Published
Common code for the GameScout services
Downloads
20
Readme
#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.