-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Jim Barnes edited this page Jan 7, 2020
·
7 revisions
- Install virtual environment:
pip install virtualenv
- Create virtual environment for your project:
virtualenv projectfolder
and move to the directorycd projectfolder/
- Clone repository into src directory:
git clone git@github.com:UCF/Search-Service-Django.git src
and move to the directorycd src/
- Activate virtual environment:
source ../bin/activate
- Install requirements:
pip install -r requirements.txt
- Create a gulp config file:
cp gulp-config.tmpl.json gulp-config.json
, then modify as necessary - Install the required npm packages:
npm install
- Make sure the default artifacts are created:
gulp default
- Create a settings_local.py file:
cp settings_local.tmpl.py settings_local.py
, then modify as necessary - Run the deployment steps:
python manage.py deploy
. This command is the equivelent of running the following individual commands: a.python manage.py migrate
b.python manage.py collectstatic -l
- Run the local server to debug and test:
python manage.py runserver
- CIPs:
python manage.py loaddata cip
- SOCs:
python manage.py loaddata soc
- Program college and tuition overrides:
python manage.py loaddata programs
- Import programs from APIM
- Command:
python manage.py import-programs
- Requirements:
- URL of APIM feed of all active programs
- Command:
- Import undergraduate catalog data:
- Command:
python manage.py import-catalog-data
- Requirements:
- Acalog API path
- Acalog API key
- Undergraduate catalog ID
- Command:
- Import graduate catalog data:
- Command:
python manage.py import-catalog-data --graduate=True
- Requirements:
- Acalog API path
- Acalog API key
- Graduate catalog ID
- Command:
- Import tuition data:
- Command:
python manage.py import-tuition
- Requirements:
- URL of the tuition JSON feed, provided by Student Accounts
- Command:
- Import occupational codes (SOCs) and map them to CIPs:
- Command: python manage.py import-soc
- Requirements:
- CSV file of SOC codes + CIP code mappings, acquired from the NCES website ("look for SOC to CIP Crosswalk"). The lines above the headings will need to be removed, and the headings renamed to:
CIP Code
,CIP Title
,SOC Code
andSOC Title
.
- CSV file of SOC codes + CIP code mappings, acquired from the NCES website ("look for SOC to CIP Crosswalk"). The lines above the headings will need to be removed, and the headings renamed to:
- Import program outcome data (using FETPIP data set from IKM):
- Command:
python manage.py import-program-outcome-data
- Requirements:
- FETPIP data export from IKM, via an information request. Information request must be performed manually on a yearly basis. See https://ikm.ucf.edu/information-requests/. Excel file provided by IKM must be sanitized manually to:
- Remove information not specific to UCF (“School” column value !== “UCF”)
- Move CIPs from the “Program” column to a new, separate column, named “CIP”.
- Add a dot “.” separator after the 2nd digit of all CIPs
- Export to CSV
- Command:
- Import Bureau of Labor Statistics (BLS) employment projection data for programs:
- Command:
python manage.py import-projection-data
- Requirements:
- CSV file of BLS employment projection data, which can be downloaded from the BLS website. All the columns right of "Occupational Openings" can be removed, and the columns renamed to
title
,code
,begin
,end
,change
,change_perc
andopenings
.
- CSV file of BLS employment projection data, which can be downloaded from the BLS website. All the columns right of "Occupational Openings" can be removed, and the columns renamed to
- Command:
- Run teledata importers
- Import all teledata:
- Requirements:
- Must be run from a machine with permissions to access our teledata staging table