GithubHelp home page GithubHelp logo

eschwelgin / openbrewerydb-rails-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openbrewerydb/openbrewerydb-rails-api

0.0 1.0 0.0 1.23 MB

Open Brewery DB Ruby on Rails REST API server

Home Page: https://www.openbrewerydb.org/

License: MIT License

Ruby 0.92% HTML 99.08%

openbrewerydb-rails-api's Introduction

Open Brewery DB - REST API Server Github Actions Badge

The Open Brewery DB API server is a Ruby on Rails API app connected to a PostgreSQL DB server.

Related project: Open Brewery DB

Description

This is the code for the Open Brewery DB API server.

Documentation

Dependencies

Run locally

  • Clone the repo $ git clone https://github.com/chrisjm/openbrewerydb-rest-api
  • Run bundle install
  • Run bundle exec rails db:setup
  • Run bundle exec rails s
  • The server will be running at http://localhost:3000

Note: There is no front-end for the API at this time.

Database setup

There are some assumptions for the local PostgreSQL service configuration.

  • Host is localhost or 127.0.0.1
  • User is blank (i.e. it is the current system user)
  • Password is blank

All of these settings can be overwritten by setting environment variables in .env:

  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • POSTGRES_HOST

See config/database.yml for configuration.

Seed breweries dataset

Included in the repo at lib/import/brewers_association/ is scraped HTML from the Brewer's Association. This will be replaced soon with a full compressed SQL which will be easier

bundle exec rake breweries:import:brewers_association

Run tests

bundle exec rake or bundle exec rspec

openbrewerydb-rails-api's People

Contributors

chrisjm avatar eschwelgin avatar dependabot[bot] avatar nmertins avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.