Deepfake Analysis Unit(DAU) is a collaborative space for analyzing deepfakes
- docker : 24.0.5
- aws cli : 2.2.25
- jq : 1.6
- elixir : 1.15.0
- Erlang/OTP : 26.0
- Run
source env.dev
to setup enviroment variables. docker-compose up
Visitlocalhost:8080
to access adminer. Login with following fields
System | PostgreSQL |
Server | db |
Username | tattle |
Password | weak_password |
Credentials are stored using AWS Secrets Manager. Please request @dennyabrain for SECRET_ARN and credentials for a suitable AWS IAM account
aws secretsmanager get-secret-value --secret-id $SECRET_ARN | jq '.SecretString' | jq -r | jq -r 'to_entries[]' | jq -r '"export " + .key + "=" + .value' > env.dev
- Load environment variables :
source env.dev
- Install frontend Dependencies :
cd assets && npm install
- To start your Phoenix server, first Run
mix setup
to install and setup dependencies. - Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Run mix docs
. This generates the documentation and puts the .html and .epub file in doc/
. Run http-server doc/
and visit localhost:80801
Copy Paste files in /priv/static/assets/media
. These will be available to the app at http://localhost:4000/assets/media/${filename.extention}
Since this app relies on media files so heavily, we have added some test files in the project specific s3 bucket. These are available with the prefix temp
. Some example files are temp/audio-01.wav
and temp/video-01.mp4
. These are used throughout unit tests and integration tests. There are 10 audio files and 50 video files.
- Upload test files to s3 :
aws s3 sync . s3://staging.dau.tattle.co.in/temp
- Seed database :
mix run priv/repo/seeds.exs