8000 GitHub - ikr/crowdhouse: A test assignment for crowdhouse
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ikr/crowdhouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-requisites

  • Node.js v8+
  • PostgreSQL server
    • listening on the standard port on host 127.0.0.1
    • no password for the DB user postgres required
  • Redis server listening on the standard port on host 127.0.0.1

Setup

  • Create the dummy "salesforce" relational database with ./bin/salesforce
    • the database schema wi 5E3E ll be created
    • the table investors will be pre-filled with some test data
  • Create the dummy "unified" database with ./bin/unidb
  • Start the application HTTP server with ./index 1337

API

$ curl -s -H 'Content-Type: application/json' -X PUT -d '{"password":"woo"}' http://localhost:1337/users/202
…
$ curl -s http://localhost:1337/users/202

The first HTTP request above changes the password for user 202. The second request fetches the user record from the both databases, and picks the most recent password update timestamp from the two.

About

A test assignment for crowdhouse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0