Install the npm packages described in the package.json and verify that it works:
# Install the dependencies
npm install
# Test
npm test
# Run
npm startShut it down manually with Ctrl-C.
The configuration file is located in /config/config.js
- PORT
- Port the api will listen on.
- Default: '8080';
- ENV
- Environment the application is running in.
- Default: 'Development'
- Options: 'Development', 'Test', 'Production'
- DB
- Database connection string.
- Default: 'mongodb://localhost:27017/sgl'
- JWTSECRET
- The JWT Secret for authentication.
- Default: 'sgltestingsecret'
API is documented using swagger. This is the best way to test api functionality.
- View Online
- Local Link - http://localhost:8080/swagger
- GET - Returns true is application is running.
- POST - Get a JWT token from login credentials
- POST - Create a new user
- GET - Return all lists
- POST - Create or update a list
- GET - Return a single list
- PUT - Update a list
- DELETE - Delete a list
- GET - Return all items
- DELETE - Delete an item
- GET - Return a single item
- PUT - Update an item
- DELETE - Delete an item
Fork -> Clone -> Branch -> {CODE} -> Pull Request
All pull requests require passing unit tests via travis and a manual review.
Contribution guidelines for this project
Copyright 2017 Russell Perkins
Licensed under the Attribution-NonCommercial-NoDerivs 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://creativecommons.org/licenses/by-nc-nd/3.0/
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.