Compose files: docker-compose.yml, docker-compose-student.yml, kong/docker-compose.yml
Kong:
docker-compose -f kong/docker-compose.yml up
Student:
docker-compose -f docker-compose-student.yml up
Everything else:
docker-compose -f docker-compose.yml up
a. Generate an access code from Dropbox Access Code Generator
b. Paste access code into line 20 of apply_job/oauth.py
authorization_code = '<code>''
c. Run the following command
python apply_job/oauth.py
d. Copy the access token and paste it into line 163 of apply_ui_vue.html
'Authorization': '<token>',
a. Visit http://localhost:1337/
b. Create account and login
c. Fill in the fields
Name: default
Kong Admin URL: http://kong:8001
Create connection
d. Click on Services and Add New Service
Name: create_job_api
Protocol: http
Host: createjob
Port: 5007
Path: /create_job
Submit Changes
e. Click onto the newly created Service and click on Routes
Add New Route
Paths: /api/v1/createjob
Methods: POST
f. Click onto Consumers and Create Consumer
Username: admin
g. Add group to admin consumer
Groups: Admins
h. Add credential API Key to admin consumer
i. Go to plugins and install acl plugin
Whitelist: Admins
environ.get('createJobURL')
environ.get('studentURL')
environ.get('jobURL')
environ.get('moduleURL')
environ.get('errorURL')
environ.get('dbURL')
environ.get('sendgridAPIKey')