This repo is intended to be used as a starting point for node projects using Sails.
It has JWT authentication baked in and is ready to be expanded upon.
There is no heavy boilerplate code to remove.
The API is deployed to Heroku via Codeship (Give me a minute to respond, I may be sleeping)
https://baseline-sails-api.herokuapp.com/
-
Node 4.4.6 (using
nvm install 4.4.6
)
Update Homebrews package database
brew update
brew install mongodb
mkdir -p /data/db
mongod --dbpath /data/db
git clone https://github.com/johnrhampton/baseline-sails.api.git
nvm use 4.4.6
npm install
npm start
POST - http://localhost:1337/user
{
"email": "yo@mtv.raps",
"password": "bad-password"
}
POST - http://localhost:1337/user/login
{
"email": "yo@mtv.raps",
"password": "bad-password"
}