fecgov / fec-eregs

The Federal Election Commission's web-based application that makes regulations easier to find, read and understand.
https://www.fec.gov/regulations/
Other
33 stars 13 forks source link

upgrade node 18.17.1 #793

Closed cnlucas closed 1 year ago

cnlucas commented 1 year ago

Summary (required)

Upgrades node to 18.17.1

Required reviewers

1 dev

Related PRs

https://github.com/fecgov/regulations-site/pull/12

How to test

Checkout this branch

Terminal One:

  1. pyenv virtualenv (your virtual environment)
  2. change regulations site line in requirements.txt AND requirements-parsing.txt to -e git+https://github.com/fecgov/regulations-site@upgrade-node-18.17.1#egg=regulations
  3. pip install -r requirements.txt
  4. rm -rf node_modules
  5. npm i
  6. npm install -g grunt-cli
  7. npm run build
  8. dropdb eregs_local
  9. createdb eregs_local
  10. python manage.py migrate
  11. python manage.py compile_frontend
  12. python manage.py runserver (leave running)

Terminal Two:

  1. pyenv virtualenv (your virtual environment)
  2. pip install -r requirements-parsing.txt
  3. python load_regs/load_fec_regs.py local
  4. Go to http://127.0.0.1:8000/ to view 45 regulations

For more detailed instructions follow the wiki on how to setup/parse regulations on local environment