Code Monkey home page Code Monkey logo

Comments (9)

stela-kucek avatar stela-kucek commented on July 29, 2024

I'm also struggling with accessing the app inside a browser.
I tried to access the IP of my docker machine, as described in https://github.com/mcpa-stlouis/hack-the-arch/blob/dev/DOCKER_README.md, but this doesn't seem to work...

Can someone provide clearer/more precise instructions for this? Thank you in advance!

from hack-the-arch.

paullj1 avatar paullj1 commented on July 29, 2024

from hack-the-arch.

paullj1 avatar paullj1 commented on July 29, 2024

To answer the original question, running HTA over http is not recommended/supported since passwords are transmitted. Https, is the recommended way, and if you start puma the way the compose file is written, then you should have no problem.

from hack-the-arch.

stela-kucek avatar stela-kucek commented on July 29, 2024

@paullj1 Thank you for answering. I'm sorry, but I've read your instructions numerous times now, and still can't help but feeling that there are some guidelines missing. Important to note here: I'm not a pro, so my issues might not seem reasonable or worthwhile to you. Nevertheless, I would really like to successfully configure and test your platform. So, here is what I (didn't) understand following your Getting Started section:

  • There are no requirements regarding the OS, so I atempted an installation on a 64-bit Ubuntu 16.04.3 Desktop
  • Installed Ruby 2.3.1 (as defined in the Requirements section
  • Cloned the current state of the master branch
  • You updated your Gemfile (requires Ruby 2.3.3 now) but not the instructions... So I installed Ruby 2.3.3 to avoid compatibility issues
  • What is meant by:

This app is presently designed to be deployed in a heroku environment

?

  • Do I need to have an existing (newly created, empty) Heroku app, and deploy this repo to my app? Is the address of this app the one to be set for the HOST environment variable? These may seem like really dumb questions, but I don't really understand...
  • When do I have to run bundle exec rake db:seed ? Are there other commands necessary to get this thing running? What are the credentials [email protected] : password for?
  • How is the app actually started? How do I access it?

It would be nice to have more detailed instructions on the initial configuration process. Maybe not every single command but at least a full (up-to-date) list of requirements and a list of necessary steps.

Thanks in advance!

from hack-the-arch.

paullj1 avatar paullj1 commented on July 29, 2024

@veryredheaded, I'll do my best to answer some of your questions. Before I start though, it might be worth mentioning that my instructions do assume a bit of background in rails development. In other words, I assumed that anyone who might be trying to deploy a rails web app would have some experience doing so. That said, the reason I created the docker container and deployment option was for those without that experience. I'd strongly suggest pursuing that option though you might have to checkout the dev branch and follow the DOCKER_README instructions.

  • There are no OS requirements because rails is a cross platform web app platform. As long as you can install rails, the app should run (again, assuming you understand rails)
  • Please visit heroku.com. It's an IaaS provider.
  • The HOST env variable is independent of heroku. It's how the automated e-mails know where to direct users when they sign up. So this should be the where the app is hosted.
  • Seeding the database is done after deploying the app, but before using it. Again, basic understanding of rails and web app development is useful here. This will create the admin user in the db with those credentials. You can then use those credentials to log into HTA.
  • Again, basic understanding of a rails app or web app development in general is extremely useful here. Your app can be started many ways, but essentially, it's a collection of ruby packages that handle requests (by default on port 3000 on the global listener). The app can generally be started by running bundle exec rails server. That, by default, will launch the app in dev mode and is not recommended for production use. For more advanced production deployments... again, please read about rails apps.

I'm sorry that probably wasn't the step-by-step directions you were looking for. My base level assumption when writing this app was basic understanding of the rails platform. That said, if you are interested in learning rails, there's a fantastic guide for free on the internet here: http://railstutorial.org/. Otherwise, please use the docker deployment option.

I hope this helps.

from hack-the-arch.

stela-kucek avatar stela-kucek commented on July 29, 2024

@paullj1 thank you so much for the detailed answer. I will definitely look into rails apps for better understanding.

Since I have no experience with it, I have tried the docker option first, but didn't know how to actually access HTA via browser. That was my main problem. But I will try to do it again, with the dev branch this time...

Thanks for your efforts and sorry for all the stupid questions :/

from hack-the-arch.

paullj1 avatar paullj1 commented on July 29, 2024

from hack-the-arch.

stela-kucek avatar stela-kucek commented on July 29, 2024

@paullj1 Thank you so much! It finally works :)

hta_screenshot

from hack-the-arch.

paullj1 avatar paullj1 commented on July 29, 2024

from hack-the-arch.

Related Issues (20)

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.