Add a command who install dependencies based on dune-project

This commit is contained in:
Mylloon 2023-05-15 16:57:36 +02:00
parent 73aafd941c
commit 658ef57b2f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,14 +1,5 @@
# Pusk # Pusk
- [x] Download a driver
- [x] Run a driver in background during the life of the app
- [x] [Figuring out how to use drivers](https://w3c.github.io/webdriver/#endpoints)
- [x] Login to Twitter.com
- [x] Check if latest tweet of user is more or less old than 30 days
- [x] Then tweet if needed something like "Don't delete my account please"
- [x] Close everything properly
- [ ] Maybe create a docker image for easy deployment?
## Requirements ## Requirements
```opam ```opam
@ -17,10 +8,23 @@ $ opam switch list
→ default ocaml-base-compiler.4.14.1 default → default ocaml-base-compiler.4.14.1 default
``` ```
### Install dependencies
```sh ```sh
$ opam install cohttp-lwt-unix tls-lwt dotenv twostep dune describe external-lib-deps | awk '/external_deps/{flag=1;next}/))/{flag=0}flag' | tr -d '()' | tr -s '\n' ' ' | sed 's/required//g' | xargs opam install -y
``` ```
## Name history ## Name history
Derived from Elon's name :D. Thanks, Elon, for destroying Twitter. Derived from Elon's name :D. Thanks, Elon, for destroying Twitter.
## TODO list
- [x] Download a driver
- [x] Run a driver in background during the life of the app
- [x] [Figuring out how to use drivers](https://w3c.github.io/webdriver/#endpoints)
- [x] Login to Twitter.com
- [x] Check if latest tweet of user is more or less old than 30 days
- [x] Then tweet if needed something like "Don't delete my account please"
- [x] Close everything properly
- [ ] Maybe create a docker image for easy deployment?