Configuration
Google reCAPTCHA
In order to stop people from infinitely uploading jobs and mucking up your system, invisible Google reCAPTCHA is used. Thus, you must get it.
# Google reCAPTCHA
G_CAPTCHA_SITEKEY='abcdefghijklmnopqrstuvwxyz'
G_CAPTCHA_SECRET='abcdefghijklmnopqrstuvwxyz'
Website Specifics
Below are variables you should change to suit your particular setup. Please ensure that all 3 folders exist, lest you run into some FileNotFoundException.
# API key for website (any random 15+ string should do)
API_KEY='abcdefghijklmnopqrstuvwxyz'
# Where the user uploads go
UPLOAD_FOLDER='/web/uploads'
# Where the script folder is
SCRIPTS_FOLDER='/web/scripts'
# Where the folder with all the training data is
TRAINING_FOLDER='/web/training'
Firebase
Firebase is actually not as important as one would think. The only reason it is included in this project is because I wanted to have instantaneous updates on-screen, instead of having the user refresh the screen madly.
To set up firebase, do the following:
- Set up an account (preferably free)
- Create a new project
- Go to Users & Permissions from the settings gear icon
- Create a new service account with all the priveleges
- Download the private key and upload the private key to the server
- Make a note of where the private key is located, and change the
.envfile accordingly
As mentioned before, this site should work without firebase - just remember to change the
FIREBASE variable from True to False.
# Firebase authentication file
# Should be some sort of key file
FIREBASE_AUTH_FILE=''
Website Miscellaneous
These configs correspond to the names of the uploaded (downloaded) files. Name them whatever you like; you don't really see them anywhere else other than your server's file system.
# Name of the testing CSV file uploaded
TESTING_FN='testing.csv'
# Name of the training CSV file uploaded
TRAINING_FN='training.csv'
# The base URL of the site (e.g.: `localhost:3000`)
BASE_URL='http://genset-testing-cheukyin699.c9users.io'