You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ The HOSTNAME to be returnd in the `user_info` object. This is used by the BCO Po
56
56
The HUMAN_READABLE_HOSTNAME to be returnd in the `user_info` object. This is used by the BCO Portal for interacting with a specific instance of the BCO DB, and in the Swager Docs.
57
57
58
58
### PUBLIC_HOSTNAME
59
-
The PUBLIC_HOSTNAME to be returnd in the `user_info` object. This is used by the BCO Portal for interacting with a specific instance of the BCO DB, and in the Swager Docs. It is also utilized by the `activation_link`, `retrieve_bco`, `validate_bco_object_id` functions, as well as in the API tests.
59
+
The PUBLIC_HOSTNAME to be returnd in the `user_info` object. This is used by the BCO Portal for interacting with a specific instance of the BCO DB (i.e. to make requests), and in the Swager Docs. It is also utilized by the `activation_link`, `retrieve_bco`, `validate_bco_object_id` functions, as well as in the API tests.
60
60
61
61
### DATABASE
62
62
This value is used as the `"NAME"`in Django's [DATABASES](https://docs.djangoproject.com/en/5.0/ref/settings/#databases) object. The BCO DB is set up to use the default SQLITE. If you would like to have a database that is outside of the project folder and/or has a non-default name than you can provide an absolute path for the name value here.
Use a text editor to open the `.secrets` file update the rest of the values with the required values. For specifics see the [configuration](/docs/config.md) documentation.
73
+
74
+
### OPTION 2: Use the `local_deployment.secrets` file
75
+
Fromt the project root:
76
+
```
77
+
cp admin_only/local_deployment.secrets .secrets
78
+
```
79
+
80
+
## Set up the databse
81
+
### Option #1: Use existing DB
82
+
This option will give you a working BCO DB with a couple of test users, existing BCOs, and some prefixes.
83
+
```
84
+
cp admin/db.sqlite3 .
85
+
python3 manage.py migrate
86
+
```
87
+
88
+
89
+
superusername: bco_api_user
90
+
password: testing123
91
+
````
92
+
93
+
---
94
+
### Option #2: Create a new DB with test data
95
+
Create a DB:
96
+
97
+
`python3 manage.py migrate`
98
+
99
+
Load the DB with test data:
28
100
29
-
## Modify the Config files:
30
-
Check/Edit the server.conf file
31
-
This is the main server configuration file for the BCO API. (most of these values will NOT need to be changed for local deployment)
0 commit comments