appirio-tech/lc1-discussion-service

Name: lc1-discussion-service

Owner: Topcoder

Description: topcoder Discussion Service

Created: 2014-09-23 16:16:55.0

Updated: 2016-07-27 19:33:44.0

Pushed: 2015-02-05 14:31:17.0

Homepage: http://lc1-discussion-service.herokuapp.com/docs

Size: 704

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

Build Status Code Climate Dependency Status

Wercker:

wercker status

serenity-discussion-api is a Discussion API Service

The topcoder Discussion API was initially built using the Apigee a127 scaffolding.

Routing is handled by using the swagger config file at api\swagger\swagger.yaml. Routing is done using swagger tools and the a127-magic modules.

Swagger

The documentation for the API and resources are in swagger. You can view the swagger config using a127 tools or the built in Swagger UI.

To Edit/view swagger config run `a127 project edit` from project root You can also view the swagger config via the /docs url when the project is running.

Current API Documentation can be found here: http://lc1-discussion-service.herokuapp.com/docs/

Models

We are following a similar patterns to access patterns as we do in the serenity-core repo.

Use a model:

Example for Message model

datasource = require('./datasource');
Message = datasource.Message;

essage is now a Sequelize Model
Node.js design guide.

Please follow Joyent's NodeJS design guide: https://www.joyent.com/developers/node/design Please use 2 spaces instead of tabs. Please use lodash instead of underscore.

Database Migrations

All tables should be setup using db-migrate with migration files in config/schema-migrations.

Migration can be run via grunt `grunt dbmigrate`

Tests

Tests are built using mocha tests. They can be run with `grunt test`. There is an example postman configuration file at test/postman.json. This can be imported into Postman for testing.

See the docs folder for more documentation

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.