No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixtures
models
.gitignore
README.md
handler.js
index.js
npm-shrinkwrap.json
package.json
plugins.js
validator.js

README.md

slap-caching

js-semistandard-style

$ nvm use 8.6.0
$ npm install

Starting Redis server

$ docker run --name redis -d -p 6379:6379 smebberson/alpine-redis

Starting PostgreSQL server

$ docker run --name postgres -d -p 5434:5432 --env 'DB_USER=dbuser' --env 'DB_PASS=dbuser' --env 'DB_NAME=slap' sameersbn/postgresql:9.6-2
$ npm start

API Endpoints:

  • GET /people (query) /people?gender=Male /people?gender=Female
  • GET /people/{id}
  • PUT /people/{id}
  • POST /people
  • DELETE /people/{id}
  • POST /add fixtures