Mileager.io - Backend API
With more and more cars getting sold with mileage restrictions these days it can be hard to keep track your usage, and by going over this limit you can incur hefty fines. Mileager.io, an open source project aims to solve this issue, allowing users to easily visualise exactly how much mileage they have used, and have remaining.
Current master branch: http://api.mileager.io
Mileager.io API is a Ruby on Rails application. to install it is as simple as:
$ git clone https://github.com/allistera/mileager.io-back $ cd mileager.io-back $ bundle install
And to run:
$ rails s
You will need to have rails installed. Various guides can be found accross the internet to do so.
Mileager.io API uses the following technologies:
- Ruby on Rails
- SQLite for testing and development
- PostgreSQL for production
- Token authentication using devise
Mileager.io uses out of the box MiniTest and Fixtures to keep it as light weight as possible. This is done on purpose, sorry no rspec, factory girl or capybara
Tests as well as Fixtures can be found in the /test directory.
Once Travis-CI has been ran the master branch will be deployed to Heroku automatically.
Note that although the Mileager.io API uses SQLite for development and testing, it is set up to use PostgreSQL in production.
- To simplify things the GitHub Flow Git workflow is used
- There is a pre-commit configuration file that will run Rubocop before you commit
Hound will automatically check pull requests code style.
The MIT License (MIT)
Copyright (c) 2014 Allister Antosik
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.