Code Monkey home page Code Monkey logo

recreational_rails's Introduction

▒█▀▀█ █▀▀ █▀▀ █▀▀█ █▀▀ █▀▀█ ▀▀█▀▀ ░▀░ █▀▀█ █▀▀▄ █▀▀█ █░░   ▒█▀▀█ █▀▀█ ░▀░ █░░ █▀▀
▒█▄▄▀ █▀▀ █░░ █▄▄▀ █▀▀ █▄▄█ ░░█░░ ▀█▀ █░░█ █░░█ █▄▄█ █░░   ▒█▄▄▀ █▄▄█ ▀█▀ █░░ ▀▀█
▒█░▒█ ▀▀▀ ▀▀▀ ▀░▀▀ ▀▀▀ ▀░░▀ ░░▀░░ ▀▀▀ ▀▀▀▀ ▀░░▀ ▀░░▀ ▀▀▀   ▒█░▒█ ▀░░▀ ▀▀▀ ▀▀▀ ▀▀▀

Table of contents

General info

This project is a basic Rails app that creates web pages with CRUD functionality allowing users to interact with database resources that have a one-to-many relationship.

We designed out database around the theme of National Park backcountry offices and trails; interpretation/visitor offices and programs.

Database Schema

Diagram

Learning Goals / Areas of Focus

  • Design a one to many relationship using a schema designer
  • Write migrations to create tables with columns of varying data types and foreign keys
  • Use Rails to create web pages that allow users to CRUD resources
  • Create instance and class methods on a Rails model that use ActiveRecord methods and helpers
  • Write model and feature tests that fully cover data logic and user behavior

Technologies

Project is created with:

  • Ruby version 2.5.3
  • Rails version 5.2.4.3
  • PostgeSQL

Setup

To run this program:

  1. From this repository, press the green "clone" button and then copy the link by pressing the Copy To Clipboard icon.
  2. Navigate to the folder where you want to save it and enter: ''' $ git clone '''
  3. Navigate into the new folder containing this project ''' $ cd recreational_rails '''
  4. Install required gem files ''' $ bundle install '''

Connecting to the database & starting the server:

  1. Make sure the app PostgreSQL is running
  2. Run the following commands: ''' $ rails s $ rails db{drop,create,migrate,seed} '''

View in browser

  1. Open the browser of your choice and navigate to: ''' http://localhost:3000/ '''

Features

List of features ready and TODOs for future development

  • View lists of Backcountry Offices, individual offices with their details, and associated trails
  • View lists of Parks, individual parks with their details, and associated visitor programs
  • Navigation bar with links to index pages containing a full list of a type of resource (e.g. all programs)
  • All types of resources can be created, updated, and deleted
  • Sort displayed resources alphabetically using a link
  • Sort by number of trails/programs using a link
  • Filter displayed records by a numeric threshold (trails with an elevation gain higher than the value, programs with greater participant limit than provided number)
  • Matching and partial match name search of backcountry offices or parks using a search bar

To-do list:

  • Add feature tests to cover the exact and partial name search methods
  • Additional refactoring

Status

Project is: in progress

Contact

Created by

~ feel free to contact us ~

Ranger leading program

recreational_rails's People

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.