A homebrew beer recipe API server backed by MongoDB
npm install tapline
|4||downloads in the last week|
|4||downloads in the last month|
|Version||0.4.0 last updated 4 months ago|
|Dependencies (22)||brauhaus, brauhaus-beerxml, mongoose, express, json-gate, optimist, winston, bcryptjs, passport-http-bearer, passport-http, passport, marked, jade, passport-local, lodash, gravatar, passport-facebook, passport-google-oauth, slug, connect-mongo, brauhaus-diff, bcrypt|
A beer, wine, and mead homebrew API server based on Brauhaus. Features include:
- Anonymous, public access to homebrewing calculators and converters
- Account registration, authentication & authorization
- Recipe storage & retrieval
- Recipe history (like Github for beer)
- Persistent storage via MongoDB
- Social features
- Follow other brewers
- Clone and share recipes
- Open source, MIT licensed
Planned features include:
- Recipe search
- Brew logs
Tapline was developed with and for Malt.io, a community website for homebrewers to create recipes and share their love of homebrewing beer.
The Tapline name was chosen because like a central tap line, this project provides a connection between storage (kegs) and serving requests (taps to fill beers).
The Tapline API documentation is in a separate document to keep the reference as slim as possible. For now it is stored in a static file, but in the future may include a way to do example calls.
- Read the Tapline API documentation
Please ensure that you have the following installed / running:
For Node.js, you can easily install Tapline using
npm install -g tapline
Note: Depending on your system you may need to use
sudo to run the above command.
Running the Server
Tapline installs a new command, called
tapline, that will let you run the server. It is recommended that for production use you use an Upstart or init script and daemonize the process. During testing or development it is sufficient to run the following:
By default, Tapline will run on http://localhost:2337/ (the port spells 'beer' on a typical phone)
Contributions are welcome - just fork the project and submit a pull request when you are ready!
First, create a fork on GitHub. Then:
git clone ... cd tapline npm install
Tapline uses the CoffeeScript Style Guide with the following exceptions:
- Indent 4 spaces
- Maximum line length is 120 characters
When building with
cake build or
npm test you will see the output of CoffeeLint, a static analysis code quality tool for CoffeeScript. Please adhere to the warnings and errors to ensure your changes will build.
Before submitting a pull request, please add any relevant tests and run them via:
Pull requests will automatically be tested by Travis CI Node.js 0.8/0.10. Changes that cause tests to fail will not be accepted. New features should be tested to be accepted.
New tests can be added in the
You can generate a unit test code coverage report for unit tests using the following:
You can find an HTML report in the
coverage directory that is created. This report will show line-by-line code coverage information.
Please note that all contributions will be licensed under the MIT license in the following section.
Copyright (c) 2013 Daniel G. Taylor
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.