forked from teresaShanklin/RAPID
sdonepudy/RAPID
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
General Instructions 1) Certain prerequisites need to be installed, use shell script install.sh to do this quickly -- Edit the line APPLICATION_DIR="/vagrant" to reflect the directory in which you copied the application -- After designating the appropriate directory, run install.sh 2) Configure Postgres -- sudo su postgres -- createuser <USERNAME> --pwprompt -- createdb <DB_NAME> -- psql -- ALTER USER <USERNAME> CREATEDB; 3) Configure Apache2 -- Example templates located at: /external_configs/apache2/ 4) Configure RAPID configuration file(s) to match your environment -- Edit /RAPID/RAPID/settings/<settings_file>.py * base.py = universal settings * local.py = development * staging.py = staging * production.py = final settings 5) Create JSON file "secrets.json" in the Django project directory (same directory as manage.py). This will contain your secret/sensitive values, for example: { "FILENAME": "secrets.json", "SECRET_KEY": "<SECRET_KEY>", "SQL_NAME": "<DATABASE_NAME>", "SQL_HOST": "<DATABASE_IP>", "SQL_USER": "<DATABASE_USERNAME>", "SQL_PASS": "<DATABASE_PASSWORD>", "EMAIL_HOST": "<EMAIL_HOST>", "EMAIL_USER": "<EMAIL_USERNAME>", "EMAIL_PASS": "<EMAIL_PASSWORD>", "EMAIL_PORT": "<EMAIL_PORT>", "IID_USER": "<INTERNET_IDENTITY_USERNAME>", "IID_PASS": "<INTERNET_IDENTITY_PASSWORD>", "PASSIVE_TOTAL_API": "<PASSIVE_TOTAL_API_KEY>" } 6) Instantiate and sync your Django models -- python3 manage.py syncdb 7) Setup celery worker daemons -- Scripts located at: /external_configs/celery/ -- Instructions located at: /docs/CELERY 8) Retrieve and decompress Geo Lite database file and place in /RAPID/core/ -- wget "http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz" -- gunzip GeoLite2-City.mmdb.gz 9) Download bootstrap and Datatables into static -- wget https://github.com/twbs/bootstrap/releases/download/v3.3.2/bootstrap-3.3.2-dist.zip -- http://datatables.net/releases/DataTables-1.10.5.zip 10) Move css, js, bootstrap-3.3.2, and DataTables-1.10.5 folders into directory where your webserver is serving static files
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 59.2%
- HTML 18.9%
- Shell 18.1%
- JavaScript 3.7%
- CSS 0.1%