Logo Lanfrica

fdmcgregor/SouthAfricanSpeechAnalyticsWebInterface

Domaine:

natural language processing

Type de record:

software
Créateur:
fdm
Hôte:
Web interface for South African speech analytics Web interface Web interface for South African speech analytics. Web app built with django. ## Table of Contents * Starting up * Getting your server production ready * Code architecture overview * License * References ## About The Project **Version**: 0.1 **Date**: 2021-06-14 This repository was developed and released by Saigen (Pty) Ltd as part of the Speech Analytics for the South African Languages (SASAL) project carried out with the support of the South Africa Department of Sports, Arts and Culture (2018-06-01 to 2021-07-31). # Starting up 1. Start a new ec2 instance on AWS running Ubuntu 18.04 2. Open port 8000 for development and 80 for testing nginx. 3. Clone the repo `git clone github.com` and rename it to `django_project` such that the project exists at `~/django_project`: `mv SouthAfricanSpeechAnalyticsWebInterface django_project` 4. Run `install_dependencies.sh` 5. Create a `.env` file containing private keys with the following: - AWS credentials to host the media files on s3. Add `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_STORAGE_BUCKET_NAME`, `AWS_S3_ENDPOINT_URL`. It is also useful to set your AWS command line interface at this stage `aws configure`. Copy the static files to your s3 bucket as we serve it form there. - Set up an emailing address and emailing client with sendgrid mailing server. Get an api key (it's free for up to 100 emails a day) and save as `SENDGRID_API_KEY`. Save sender email address as `EMAIL_USER`. - Set up a postgres database (if you are just getting started you can use sqlite by changing `LOCAL_DB` to True in `settings.py` and you can skip this part). Create a database (`RDS_NAME`) and user (`RDS_USER`) passdword (`RDS_PASS`): `sudo -u postgres psql` ``` >>> CREATE USER `RDS_USER` WITH ENCRYPTED PASSWORD `RDS_PASS`; >>> CREATE DATABASE `RDS_NAME`; ``` And add `RDS_USER`,`RDS_NAME`,`RDS_PASS`,`RDS_HOST` with `RDS_HOST="localhost"` as we are ru …