This is the API for the Set The Set Code Challenge.
An example of this API is hosted at:
The source code for this repository can be found here:
An updated swagger API documentation for this API can be found here:
Use the API as a standard REST API
- accepts standard HTTP get/post/put/delete
- Accepts JSON as the content type (application/json) for requets and responses
- cors enabled
Please ensure your operating system has the following software installed:
-
Git - see GitHub's tutorial for installation
-
MongoDB (v3.x+):
-
Mac (via brew):
brew install mongodb && brew services start mongo
-
Ubuntu:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list sudo apt-get update sudo apt-get -y install mongodb-org
-
The
start
script will start the server
npm:
npm start
yarn:
yarn start
As similar to running any other node process, simply use the environment variable
DEBUG
:
npm:
DEBUG=* npm start
yarn:
DEBUG=* yarn start
You can also use NODE_DEBUG
if desired to debug node internal modules.
npm:
npm test
yarn:
yarn test