-
Notifications
You must be signed in to change notification settings - Fork 22
Platform independent install instructions
Christopher Keith edited this page Nov 7, 2022
·
17 revisions
Clone repository:
-
cd <directory for your repository>
e.g.,cd ~/github
git clone https://github.com/usdigitalresponse/usdr-gost.git
Set up app password for sending emails as described in https://github.com/usdigitalresponse/usdr-gost/tree/_staging
Set up .env files:
cd usdr-gost/
cp packages/server/.env.example packages/server/.env
cp packages/client/.env.example packages/client/.env
Edit .env file(s) as described in the Docker README.md
- Remove any comment lines (starting with #)
- Set NODEMAILER* variables in server/.env, e.g.,
[email protected]
NODEMAILER_EMAIL_PW=<your app password>
Follow instructions in the Docker README.md in the Setup and Seed sections (You may needed to run docker compose exec app yarn setup
after docker compose up -d
)
- Share files as necessary
- Accept any requests to open ports in your firewall
Run test suites:
docker compose exec app yarn test
Add yourself as a user
- Run bash in Docker container
docker compose exec postgres bash
export PGPASSWORD=password123
-
psql -U postgres
\c usdr_grants;
insert into users (email, name, role_id, agency_id, tenant_id) values ('your.email.here' , 'your name here', 1, 0, 1);
\q
- exit
Verify that you can get to the login page and login