diff --git a/README.md b/README.md index 094eea69a5..b2639835b7 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,23 @@ This is our main user account monolith that we'll also bake other pieces into. Local development ----------------- -### Setup +### Setup development -Install diesel, +Install the following libraries, and see the notes further below about MySQL on Ubuntu 20.04. + +``` +mysql-server +imagemagick +``` + +To manage the database and perform migrations, install the Rust tools diesel and sqlx. + +We'll be using diesel to manage the migrations, but sqlx within the app to actually perform queries. +Diesel is an ORM, which is dumb, so we use sqlx as at-compile-time typesafe SQL. ``` sudo apt-get install libmysqlclient-dev +cargo install sqlx-cli --no-default-features --features mysql cargo install diesel_cli --no-default-features --features mysql ``` @@ -57,7 +68,7 @@ Production ### Database migrations -1. Set `DATABASE_URL` in `.env` +1. Set `DATABASE_URL` in `.env` to the production secrets (DO NOT COMMIT!) 2. Run `diesel migration run` Actix notes diff --git a/models/Wav2Lip/requirements.txt b/models/Wav2Lip/requirements.txt index de89d8f04b..e0422532b0 100644 --- a/models/Wav2Lip/requirements.txt +++ b/models/Wav2Lip/requirements.txt @@ -8,3 +8,9 @@ tensorflow==1.12.0 torch==1.1.0 torchvision==0.3.0 tqdm==4.45.0 + +# To download (w2l-download-job) +# Note: these will need frequent updates! +gdown==3.13.0 +youtube-dl==2021.5.16 +