Unless stated otherwise, execute all commands in the root directory of the project folder svd
.
If you do not have OCaml installed, follow this guide
https://cs3110.github.io/textbook/chapters/preface/install.html
make install
make build
make play
Once you have installed the CS 3110 OCaml OPAM switch, you will need to install the following packages by executing:
opam update
opam upgrade
opam install -y mechaml tls core core_unix ANSITerminal
Additional Package Description:
- mechaml: Mechaml is a functional web scraping library. It is built on top of existing libraries that provide low-level features :
Cohttp
andLwt
for asynchronous I/O and HTTP handling, andLambdasoup
to parse HTML. - tls: Transport Layer Security (TLS) is one of the most widely deployed security protocols on the Internet. This package implements TLS protocol purely in OCaml.
- core: Core is a souped-up and filled-out version of Base, Jane Street’s minimal standard library replacement. Some Core modules are extensions of their counterparts in Base.
Important
To add support for querying, we need to install a few python pacakages
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
We would like to verify that every function is working as intended. To run our test suite, execute
make build
make test
Verify that there are no errors and the output response is Ok
.