Welcome to the Sailing Downstream repository! This repository contains various tasks meant for mentorship purposes, covering different programming languages and tools. Below you will find instructions on how to set up, run, and test each task.
This repository is designed to help you practice and enhance your programming skills through various tasks. Each task is organized into its own directory with the necessary files to complete it.
Before running any tasks, make sure you have the following installed on your system:
- Node.js (for JavaScript tasks)
- OCaml (for OCaml tasks)
- Python (for Python tasks)
- A terminal or command-line interface
You may also need specific package managers or tools such as npm, opam, or pip for dependency management.
Directory: javascript_task/
This task involves working with JavaScript. To get started:
- Navigate to the
javascript_taskdirectory:cd javascript_task - Install dependencies:
npm install
- Run the task:
node index.js
Directory: ocaml_task/
This task is centered around OCaml. To run the OCaml task:
- Navigate to the
ocaml_taskdirectory:cd ocaml_task - Install dependencies using
opam:opam install . --deps-only - Build and run the task:
dune exec ./main.exe
Directory: python_task/
This task focuses on Python. Follow these steps to run the Python task:
- Navigate to the
python_taskdirectory:cd python_task - Install dependencies:
pip install -r requirements.txt
- Run the task:
python main.py
Each task includes its own test suite. To run the tests:
- JavaScript Task:
npm test - OCaml Task:
dune runtest
- Python Task:
pytest
Make sure to navigate to the appropriate directory before running the tests.
Contributions are welcome! Please fork this repository and submit a pull request with your changes. Ensure that all tests pass and that your code adheres to the project's style guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.