Code Monkey home page Code Monkey logo

bikerentalshop's Introduction

BikeRentalShop

Overview

For implement this task I use Postgres as database and ruby as language for ORM implementation and some bash scripts.

##Project structure:

  1. dbconfig - the folder with the database connection configuration file

    • config.yml.example - the file with example configuration
  2. documentation - the folder with documentation

  3. dump - the dumps of the database: the full dump and the schema-only dump

  4. ruby scripts:

    • db_model.rb - ORM by ruby

    • db_sample_data.rb - ruby script with sample data

How to use it

The application requirement:

  • PostgresSql as Database (version 9.5 or above)

  • ruby language for scripts

Copy files to local folder

git clone https://github.com/vladimirschuka/BikeRentalShop.git

Changing the database configuration file:

dbconfig/config.yml

The repository has config.yml.example for example.

dbconfiguration:
    adapter: postgresql
    host: localhost
    database: bikerentalshop
    username: postgres
    password: xxxxxx 

You have to change parameters to your DB.

After creating configuration file config.yml, you need install ruby languge:

apt-get install ruby

Installation the necessary components

bundle install

Run the main script, that creating database, creating scheme and the sample data

run.sh

##Sample terminal application

The small terminal application which show clients and the numbers of the bikes.

ruby run_me.rb

##Documentation

All documentation in documentation folder link

bikerentalshop's People

Contributors

vladimirschuka avatar

Watchers

 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.