This is an API built using StrongLoop. It relies on NodeJS and MongoDB.
You will need:
- Git
- NodeJS and NPM
- MongoDB
- StrongLoop CLI
npm install -g strongloop
- Make sure you have git installed
- Install NodeJS and NPM via the provided link (we recommend using the first script).
- Install MongoDB using the provided link. Make sure to follow the instructions all the way down the page to AND including "Start (Run) MongodDB". MongoDB must be running in order for the API to run!
- If you have not already done so, run
npm install -g strongloop
. - Now run the following commands:
git clone [email protected]:simpulton/simple-rest-api.git
cd simple-rest-api
npm install
slc run
- Note: If you want to use the version without authentication, checkout the "without-auth" branch and restart the API if necessary. Be sure to do the same in the simple-rest-website repo.
An alternative way to run the simple-rest-server is via Docker and fig.
git clone [email protected]:simpulton/simple-rest-api.git
cd simple-rest-api
fig up
Navigate to localhost:1337/explorer (or http://192.168.59.103:1337/explorer/ if using boot2docker) to view your api.
Congratulations!
You can now play around with it using the explorer or head over to Simple REST Website for a super-simple front-end application that connects to your new API!