Skip to content

Instantly share code, notes, and snippets.

@Angeldude
Last active February 13, 2019 04:13
Show Gist options
  • Save Angeldude/7019370f0c72732d0518f71a06767c19 to your computer and use it in GitHub Desktop.
Save Angeldude/7019370f0c72732d0518f71a06767c19 to your computer and use it in GitHub Desktop.
htss exploratory setup

Prerequisites:

Docker installed node/npm installed ruby, rails installed

run npm install

run docker-compose up

run rails webpacker:compile to install js assets

a .env file with proper keys and env variables

With no proper documentation, this took several hours to figure out.

Note: most of the NPM installed packages are outdated with vulnerabilities

ignore the docker-compose2.yml file

there are broken migrations, I had to comment these out:

20180113161809_create_user_products the payment_request line

20180113162211_create_initial_products_for_blueprint_you.rb all

20180828135624_populate_allowed_course_ids_on_partners.rb all

There's no way of knowing if commenting out these migrations will cause any future breakages and with no tests written, one can only guess at best.

With a fresh database, and no GUI defined way to create a user, users must be created manually. Lack of seeds file make this tedious.

Alternative is to pull the database from heroku and then alter the 400+ users' emails to a fake email but this is not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment