Skip to content

SMUGitGeeks/IS213

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IS213

Enterprise Solution Development Project

First Setup

1. Change the environment variables accordingly on the compose files

Compose files: docker-compose.yml, docker-compose-student.yml, kong/docker-compose.yml

2. Create the required databases and run the sql files

3. Run the following commands

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

4. Get API key for dropbox

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>',

5. Setup Kong

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

Environment Variables:

Create Job URL

environ.get('createJobURL')

Student URL

environ.get('studentURL')

Job URL

environ.get('jobURL')

Module URL

environ.get('moduleURL')

Error URL

environ.get('errorURL')

Database URL

environ.get('dbURL')

Sendgrid API Key

environ.get('sendgridAPIKey')

About

Enterprise Solution Development Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published