Skip to content

Plataforma creada con el framework de Ruby on Rails, usando PostgreSQL como base de datos, Docker como plataforma de despliegue y Heroku para desplegar la aplicación en web.

Notifications You must be signed in to change notification settings

Conexoxo/feedback

Repository files navigation

Plataforma para realizar feedback a profesores

ICF244 Arquitectura de Sistemas - Tarea 1 y 2: Comunidad UNAB

Demo en Heroku >>

  • Alumno de prueba:

    • Email: alumno@gatica.exe
    • Contraseña: alumno
  • Profesor de prueba:

    • Email: profesor@gatica.exe
    • Contraseña: profesor

Dependencies 📋

  • Rails 6.0.0:

      gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
      sudo apt install curl
      \curl -sSL https://get.rvm.io | bash
      \curl -sSL https://get.rvm.io | bash -s stable --rails
      rails --v
    
  • Ruby 2.6.5:

    • Using rbenv:
        rbenv install 2.6.5
    • Using RVM:
        rvm install ruby-2.6.5
        rvm use ruby-2.6.5
  • Docker:

      sudo apt install docker-compose
    

Usage 🚀

To run rails server:

docker-compose build
docker-compose run web rails db:create
docker-compose run web rails db:migrate
docker-compose run web rails db:seed
docker-compose up

Open rails console:

docker-compose run web rails c

Stop containers, networks and drop database:

docker-compose run web rails db:drop
docker-compose stop
docker-compose down

Now when you modify Gemfile, you have to sync changes in Gemfile.lock using:

docker-compose run web bundle install
docker-compose up --build

Known Issues 📢

  1. To fix "Error installing pg: ERROR: Failed to build gem native extension." :

    sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev postgresql-client-common postgresql-client libpq-dev
    
  2. To fix "PG::ConnectionBad (could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?):" :

      sudo service postgresql start
    
  3. To fix "Webpacker::Manifest::MissingEntryError - Webpacker can't find application in /feedback/public/packs/manifest.json" and "[Webpacker] Compilation failed: web_1 | /usr/local/bundle/gems/webpacker-4.0.7/lib/webpacker/runner.rb:13:in `': No such file or directory - yarn (Errno::ENOENT) web_1 | from /usr/local/bundle/gems/webpacker-4.0.7/lib/webpacker runner.rb:13:in" :

      bundle exec rake assets:precompile
      docker-compose build
      docker-compose up
    
  4. To fix "Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)"

      sudo apt-get install nodejs
    

Authors ✒️

About

Plataforma creada con el framework de Ruby on Rails, usando PostgreSQL como base de datos, Docker como plataforma de despliegue y Heroku para desplegar la aplicación en web.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •