-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8eee8f
commit 4e123ae
Showing
22 changed files
with
85 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
!**/.pages | ||
!.includes | ||
_theme/.templates | ||
|
||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nav: | ||
- index.md | ||
- setup.md | ||
- setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Setup HOPE integration | ||
|
||
- Add aurora_token in the user | ||
- Add aurora_server in the Constance Config | ||
- Fetch data from Aurora | ||
- Associate Organizations to Business Areas | ||
- Associate Projects to Programmes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Build and use your docker | ||
|
||
After you have cloned the repo, be sure to have a Reddis and PostgreSQL server running on your machine | ||
|
||
export ADMIN_EMAIL=admin@example.com | ||
export ADMIN_PASSWORD=password | ||
export DATABASE_URL=postgres://postgres:@127.0.0.1:5432/aurora | ||
export CACHE_URL=redis://127.0.0.1:6379/1?client_class=django_redis.client.DefaultClient | ||
|
||
cd docker | ||
|
||
make build run | ||
|
||
|
||
## Use provided compose.yml | ||
|
||
docker compose up | ||
|
||
navigate to http://localhost:8000/admin/ and login using `admin@example.com/password` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
nav: | ||
- index.md | ||
- setup.md | ||
- Setup: setup | ||
- Western Union: wu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
nav: | ||
- index.md | ||
- virtualenv.md | ||
- docker.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Docker |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Virtualenv | ||
|
||
|
||
### System Requirements | ||
|
||
- python 3.12 | ||
- [direnv](https://direnv.net/) - not mandatory but strongly recommended | ||
- [pdm](https://pdm.fming.dev/2.9/) | ||
|
||
|
||
**WARNING** | ||
> Hope Payment Gateway implements **security first** policy. It means that configuration default values are "almost" production compliant. | ||
> | ||
> Es. `DEBUG=False` or `SECURE_SSL_REDIRECT=True`. | ||
> | ||
> Be sure to run `./manage.py env --check` and `./manage.py env -g all` to check and display your configuration | ||
|
||
|
||
### 1. Clone repo and install requirements | ||
git clone https://github.com/unicef/hope-payment-gateway | ||
pdm venv create 3.12 | ||
pdm install | ||
pdm venv activate in-project | ||
pre-commit install | ||
|
||
### 2. configure your environment | ||
|
||
Uses `./manage.py env` to check required (and optional) variables to put | ||
|
||
./manage.py env --check | ||
|
||
|
||
### 3. Run upgrade to run migrations and initial setup | ||
|
||
./manage.py upgrade | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
nav: | ||
- index.md | ||
- setup | ||
- glossary.md | ||
- tmp.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.