Commit Graph
92 Commits
Author SHA1 Message Date
Carlo Costino 3aa5f3415e Updated README title
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-22 14:10:03 -05:00
Carlo Costino d2891042b4 Added pre-commit git hooks into the project
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-22 14:05:23 -05:00
Carlo Costino 40de352f9e Update README with new instructions and improve setup
This changeset updates the README.md file with a set of entirely new instructions. These updates are intended to improve clarity, simplify steps, and reduce confusion and environment-setup gotchas that folks have run into previously and we have learned from. A couple of other changes are also included:

- Minor adjustments to the Makefile to improve make bootstrap
- Updates to the sample.env file to include previously missing required environment variables and/or information
- Additional support for Python virtual environments
- Removes tracking of the .python-version file used by pyenv

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-22 14:05:20 -05:00
Carlo Costino 09c4dd2e1d Update more dependencies and fix notifications-utils
This changeset updates a few more dependencies and addresses the challenges we have had in keeping the notifications-utils dependency up-to-date.  The changes include instructions on what to do going forward for future notifications-utils updates.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-01 12:16:35 -04:00
Carlo Costino e055318ca8 Added instructions to the README
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-30 16:57:03 -04:00
Steven ReillyandCarlo Costino 97a6de68b8 update poetry doc link
Co-authored-by: Carlo Costino <ccostino@users.noreply.github.com>
2023-09-05 12:16:52 -04:00
Kenneth Kehl e8d7d91402 switch from pipenv to poetry 2023-09-01 07:56:02 -07:00
Carlo Costino b5664c3d20 Add support for E2E (end-to-end) tests (#625)
This changeset lays the foundation for supporting E2E (end-to-end) integration tests for US Notify.  It brings in the Playwright testing framework along with the Playwright pytest plugin to make this possible, and includes the following adjustments:

- A new test session fixture for ensuring that Playwright authenticates with the sites that are currently behind HTTP Auth (requies env-var config)
- A new end_to_end test directory specifically for E2E tests
- Updates to the Makefile that make sure E2E tests are not run as a part of the normal test routine but can be run separately
- A new command in the Makefile to run E2E tests that will run in Chromium, Firefox, and Webkit headless browsers

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-07-28 09:31:45 -04:00
Carlo Costino d83ee3f66c Update README with additional nvm install step (#513) 2023-05-17 17:09:23 -04:00
Jonathan Bobel 9412821490 Removing these instructions because I tied them into the default build process 2023-04-28 11:25:40 -04:00
Jonathan Bobel a73d53dd78 Updated README to include USWDS instructions 2023-04-24 15:52:38 -04:00
Ryan Ahearn e3610f7d9d Address PR feedback 2023-03-14 16:00:40 -04:00
stvnrlly 7613cd2747 remove static and re-add to .gitignore 2022-12-06 10:20:22 -05:00
Steven Reilly 6d33a4621b Merge pull request #185 from GSA/tdlowden-patch-1
Create notify-pilot-flyer.md
2022-11-08 16:44:32 -05:00
Tim Lowden e5c1ac1f16 Update README.md 2022-11-08 16:10:50 -05:00
stvnrlly e44fe2eb11 switch to pipenv 2022-11-08 09:44:09 -05:00
Ryan Ahearn 95ad8827bc Merge pull request #182 from GSA/fix-service-names
Replace old notifications- service prefix with notify-
2022-11-07 14:02:09 -05:00
Ryan Ahearn ea902c3403 Update URL for demo admin server 2022-11-07 13:55:30 -05:00
stvnrlly 7eae8b3a97 until → under 2022-11-07 12:24:46 -05:00
stvnrlly 5f942b19a8 update licensing terms for us gov 2022-11-07 11:29:20 -05:00
Ryan Ahearn dfea3ac848 Install pa11y-ci 2022-08-30 10:37:33 -04:00
Ben Klaas c9a952a3a9 Update README.md
Keep .env setup section separate in case someone needs it outside of Quickstart instructions. Point Quickstart instructions to the .env setup section.
2022-08-12 15:06:55 -05:00
Ben KlaasandRyan Ahearn 68de001de9 Update README.md
Co-authored-by: Ryan Ahearn <ryan.ahearn@gsa.gov>
2022-08-12 15:01:33 -05:00
Ben Klaas 917f2aba8a QUICKSTART updates 2022-08-05 15:29:51 +00:00
jimmoffet 6042289411 corrected cmd palette shortcut in readme 2022-08-03 15:52:27 -07:00
Jim Moffet 314eb27f5a Update README 2022-08-01 11:14:37 -07:00
Richard Baker 799949a3f4 Add .nvmrc & use NVM to manage installed Node version
We have decided to use NVM to manage installed Node versions locally
and in CI to ensure they match and produce consistent builds.

Running `nvm install` will install the Node version specified in the
`.nvmrc` file.

This is now consistent with Document Download Frontend.
See: alphagov/document-download-frontend#114

Signed-off-by: Richard Baker <richard.baker@digital.cabinet-office.gov.uk>
2022-04-05 12:09:53 +01:00
Ben Thorner f87fca9aa0 Centralise documentation for updating dependencies
This follows the convention established in [1].

[1]: https://github.com/alphagov/notifications-antivirus/pull/83
2021-12-29 15:01:21 +00:00
Katie Smith fdfdb9e498 Update runtime.txt and README.md to Python 3.9 2021-11-02 16:09:56 +00:00
Ben Thorner 9f9751adbf Tweak layout for dependencies section
This matches what we have in other repos [1][2].

[1]: https://github.com/alphagov/notifications-antivirus#to-update-application-dependencies
[2]: https://github.com/alphagov/notifications-api#to-update-application-dependencies
2021-05-11 18:22:11 +01:00
Ben Thorner d15143606e Rewrite and expand docs on auto-JS scripts
This adds a note about automatically re-running JavaScript tests.
I've moved and rewritten the old content about re-building JS code
to match the new style.
2021-05-11 18:20:40 +01:00
Ben Thorner 423b4c7812 Revise final sections of the README
This makes a few additional changes to curb the length of this file,
by moving length documentation (the picture is large) into a separate
file, where other documentation could go. It also corrects the section
on requirements, and attempts to make it more concise.
2021-02-22 17:19:46 +00:00
Ben Thorner 864f4bef66 Revise README to be similar to API app
This restructures the sections based on what we agreed for the API
repo.
2021-02-22 17:19:30 +00:00
Ben Thorner c1cbd9c34a Remove redundant parts of the README
These aren't specific to this repo, and are covered more generally
in the Wiki [1]. Note that:

- The claim about needing multiple Python versions is not true.
- The NPM instructions should be covered by the "make bootstrap".
- The version of Node/NPM is covered by installing the latest one.

[1]: https://github.com/alphagov/notifications-manuals/wiki/Getting-Started
2021-02-22 17:04:41 +00:00
Ben Thorner ff035bfe8e Revise section on setup
This is now closer to the recently revised README for the API repo.
2021-02-22 16:56:09 +00:00
Ben Thorner c7423bc8ca Swap FLASK_DEBUG for FLASK_ENV
This achieves the same thing and gets rid of the warning about being
in a production environment when the app starts up.
2021-02-22 16:54:56 +00:00
Ben Thorner dfb767d57e Move bootstrap tasks into the Makefile
This is more consistent with how we run all other tasks. Note that
the virtual env setup is not generally applicable, and developers
of this repo should follow the guidance in the README.
2021-02-22 16:53:54 +00:00
Ben Thorner 8704f4dfdd Revise section about AWS setup
This is covered in Wiki in more detail. Note that only parts of the
app itself (vs the API app) require these credentials.
2021-02-22 16:44:13 +00:00
Ben Thorner b2ae52fa11 Remove section about virtualenv
This is covered generically in the Wiki [1].

[1]: https://github.com/alphagov/notifications-manuals/wiki/Getting-Started#development-environment
2021-02-22 16:42:23 +00:00
Ben Thorner 36a806e8bf Switch to 'make' for running app processes
These are simple enough that they don't need their own scripts.
2021-02-22 16:41:30 +00:00
David McDonaldandChris Hill-Scott c5d08c15fd Update README.md
Co-authored-by: Chris Hill-Scott <me@quis.cc>
2020-05-22 09:48:04 +01:00
David McDonald d14510c98c Further improvements to readme 2020-05-20 10:58:35 +01:00
Aaron McCloud e57641f992 Updated Readme.md project setup steps 2020-05-16 16:00:38 -07:00
David McDonald 21c63926b5 Remove things from readme that are no longer relevant
The requirements link has been broken for ages
We no longer use coveralls
2020-02-24 17:31:29 +00:00
Tom Byers c7f3b688cd Bump version of NodeJS to 10.15.3
Updates the README to reference this.

If running this locally, it's recommended to use
the 'n' NPM package to manage your version of
NodeJS, as described in the README:

https://github.com/alphagov/notifications-admin#first-time-setup
2019-04-12 15:36:57 +01:00
Chris Hill-Scott 0d13c8b091 Update with latest setup 2018-12-21 12:54:19 +00:00
Chris Hill-Scott a271381f5a Add information about how static assets are served
This should help developers new to Notify understand how it works.
2018-12-14 16:25:31 +00:00
Alexey Bezhan 2f876243ae Pin all requirements in requirements.txt
The list of top-level dependencies is moved to requirements-app.txt,
which is used by `make freeze-requirements` to generate the full
list of requirements in requirements.txt.

(See alphagov/notifications-api#1938 for details.)
2018-07-30 16:43:03 +01:00
Leo Hemsted 11a4a08ccb hardcode some development values
this'll ensure that you won't get your dev secret keys out of sync
between api and admin
2018-02-27 15:55:20 +00:00
Leo Hemsted 4aeb57567a remove flask-script
flask-script has been deprecated by the internal flask.cli module, but
making this carries a few changes with it

* you should add FLASK_APP=application.py and FLASK_DEBUG=1 to your
  environment.sh.
* instead of using `python app.py runserver`, now you must run
  `flask run -p 6012`. The -p command is important - the port must be
  set before the config is loaded, so that it can live reload nicely.
  (https://github.com/pallets/flask/issues/2113#issuecomment-268014481)
* find available commands by just running `flask`.
* run them using flask. eg `flask list_routes`
* define new tasks by giving them the decorator
  `@app.cli.command('task-name')`. Task name isn't needed if it's just
  the same as the function name. Alternatively, if app isn't available
  in the current scope, you can invoke the decorator directly, as seen
  in app/commands.py
2017-11-06 17:33:04 +00:00