Skip to content

Commit

Permalink
chore: rename top-level backend directory
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgamache committed Feb 2, 2024
1 parent 2e2bfdf commit 1458e3f
Show file tree
Hide file tree
Showing 22 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docs/developer-environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Ensure the following are installed:

## App Environment Variables

In both the `client` and `bc_obps` directories, create a `.env` file and copy the contents of `.env.example` file of the respective directory into it. See the 1Password vault for the values.
In both the `client` and `server` directories, create a `.env` file and copy the contents of `.env.example` file of the respective directory into it. See the 1Password vault for the values.

## Backend Environment Setup

1. Navigate to folder: `cas-registration/bc_obps`.
1. Navigate to folder: `cas-registration/server`.
2. Copy/Paste the `.env.example` file and rename it `.env`.
3. Complete the .env file values reflecting the 1Password vault document `OBPS backend ENV`.
4. Run `make install_dev_tools`. This will install asdf plugins, poetry and activate the poetry virtual environment (to get into the environment again after setup, run `poetry shell`). To exit the shell run `exit`.
Expand All @@ -38,7 +38,7 @@ In both the `client` and `bc_obps` directories, create a `.env` file and copy th

After doing the initial setup, to get the backend re-running:

1. From the `cas-registration/bc_obps` directory, run `poetry shell`
1. From the `cas-registration/server` directory, run `poetry shell`
2. To set up the database:
- If you want to drop and recreate the database with mock data, run `make reset_db`. (Warning: This will delete superusers and you will have to recreate with `make superuser`.)
- If you want to keep your existing database and update (e.g. after a rebase)
Expand Down Expand Up @@ -80,7 +80,7 @@ If you would like VS-Code to utilize Black to format your Python code automatica
},
"black-formatter.importStrategy": "fromEnvironment",
"python.testing.pytestArgs": [
"bc_obps"
"server"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion bc_obps/manage.py → server/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def main():
"""Run administrative tasks."""
load_dotenv()

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bc_obps.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'server.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion bc_obps/bc_obps/asgi.py → server/server/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bc_obps.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'server.settings')

application = get_asgi_application()
4 changes: 2 additions & 2 deletions bc_obps/bc_obps/settings.py → server/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'bc_obps.urls'
ROOT_URLCONF = 'server.urls'

TEMPLATES = [
{
Expand All @@ -71,7 +71,7 @@
},
]

WSGI_APPLICATION = 'bc_obps_reporting_api'
WSGI_APPLICATION = 'server.wsgi.application'


# Database
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion bc_obps/bc_obps/wsgi.py → server/server/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bc_obps.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'server.settings')

application = get_wsgi_application()
File renamed without changes.
File renamed without changes.

0 comments on commit 1458e3f

Please sign in to comment.