add w2l deps, update readme

This commit is contained in:
Brandon Thomas committed 2021-05-31 21:45:45 -04:00
1 parent 16f6e6ebef
commit 335d355d64
2 files changed
+20 -3

No files matched your search

+14 -3
View File
@@ -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
+6
View File
@@ -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