Code Monkey home page Code Monkey logo

haengemattenapp's Introduction

README

About

https://htw-imi-wt1-rails-hammockapp.herokuapp.com

This is a student work belonging to a web technology course at HTW Berlin. We built a web app, that enables people to share knowledge about locations where one can put his/her hammock :-) It is a Ruby on Rails project, which uses sqlite2 as a database (on heroku we switched to postgresql), Bootstrap 3 for the frontend and openstreetmap for map rendering.

Authors: Jannis Jahr, Max Menzel and Laura Woelbeling

Berlin, January 2019

Requirements

  • Ruby Version: 2.5.1
  • Rails Version >=5.2.1
  • SQLite3
  • ImageMagick
  • (PostgreSQL in Production)

Make sure Ruby and Rails is installed on your system. Fire command prompt and run command:

  ruby -v
  rails -v

If you see Ruby and Rails version then you are good to start, otherwise setup Ruby On Rails (use rvm for managing different ruby versions -- see below)


  • install rvm, Ruby und Rails

    \curl -sSL https://get.rvm.io | bash -s stable
    rvm get master
    rvm install "ruby-2.5.1"
    
    • on cygwin you might need to make the cygwin installer accessible via the PATH variable via PATH=/your/path:$PATH
  • Use the newly installed Ruby:

    rvm use 2.5.1 
    
  • Check this worked correctly:

    ruby -v
    which ruby
    
  • install Bundler and Rails

    gem update --system
    gem install bundler
    gem install nokogiri -- --use-system-libraries
    gem install rails
    

    Hint: the above nokogiri command needs system libraries / cygwin (libxml2-dev, libxslt-dev, zlib, sqlite3, libcrypt-devel, libsqlite3-devel, libgmp-devel, make and others) in order to run. You can try just gem install nokogiri instead.

  • install Image Magick

    (depends on your platform)

    see http://im.snibgo.com/cygwin.htm for installation under Cygwin (Windows)

  • check Image Magick Installation

    convert --help
    
  • install PostgreSql (for deployment)

    (Installation depends on your platform.)

    Hint: For rails it is important that you have the devel libraries installed and pg_config can be found via your PATH. You may need to install libpq-devel or libpq-dev or similar. If pg_config cannot be found, you can then run

    bundle config build.pg --with-pg-config=/Path/To/Your/pg_config 
    

    After that, gem install pg should give no errors.


Installation

Below are the setups to run Ruby on Rails application on your system.

  1. clone Git repository

    git clone [email protected]:Sinnaj94/HaengemattenApp.git

  2. setup and run project

  • Install all dependencies

    bundle install
    
  • Create db and migrate schema

rake db:create rake db:migrate

    rails db:schema:load
    rails db:seed

(oder:)

    rake db:reset db:migrate db:seed
  • Now run your application

    rails s

Important: Line Endings

It seems, that CRLF line endings (Windows) cause problems with shebangs in ruby files. Please make sure you only commit LF line endings (let Git convert them). See: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#Formatting-and-Whitespace and https://help.github.com/articles/dealing-with-line-endings/. There is also a .gitattributes settings file in place.

haengemattenapp's People

Contributors

chibbs avatar maiktheknife avatar

Watchers

James Cloos avatar Jannis Jahr avatar  avatar  avatar

haengemattenapp's Issues

Adminsicht erstellen

Adminseite erstellen

  • neue Sizes anlegen
  • User zu Admins machen
  • ?

-> zugänglich über Profil-Dropdown, nur wenn User Admin ist

Map wird manchmal nicht dargestellt oder verzerrt

getestet im Firefox:

  • beim ersten Aufruf sieht man nur obersten 1cm der Map -> auffrischen hilft
  • wird Browserfenster reduziert verzerrt sich die Map (auch wenn man danach wieder auf Fullscreen geht)
  • wird die linke Menüleiste weggeslidet (sorry für das Wort!), verzerrt sich die Map

Formularanzeige bei Validierungsfehlern

Wenn man einen neuen Platz eintragen möchte und eins der verpflichtenden Felder nicht ausfüllt:

Formular wird neu gerendert (oder ein anderes?) und schwebt nicht mehr über der Karte, sondern ist einfach (großformatig und hässlich) in neuer Seite.

Es wäre schön, wenn angezeigt werden würde, welche Felder optional sind und welche nicht ;-)

Site löschen nicht möglich

reproduzierbar: anmelden, z.B. als Max Mustermann -> Site raussuchen (eigene) -> Klick auf Löschen Button -> Seitenladefehler mit Adresse "todo:IMPLEMENT"

Filtern nicht möglich

Suche ist möglich.
Zusätzlich benötigt: Filtern nach Size, evtl. Umkreis, durchschnittliche Bewertung

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.