https://github.com/mdvanes/lemonfarmer
https://github.com/mdvanes/lemonfarmer
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdvanes/lemonfarmer
- Owner: mdvanes
- Created: 2023-08-22T09:30:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T12:56:23.000Z (over 1 year ago)
- Last Synced: 2025-01-11T11:14:09.422Z (5 months ago)
- Language: TypeScript
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🍋 Lemon 👨🌾 Farmer
Use the [spacetraders.io](https://spacetraders.io/) API with [fp-ts](https://gcanti.github.io/fp-ts/).
### Usage
Make sure to install Deno: https://deno.land/manual/getting_started/installation
Then start the project:
```
deno task start
```This will watch the project directory and restart as necessary.
Run tests:
```bash
# Run mock server (note that dpx can also be installed globally)
# Does not work yet: deno run --allow-read --allow-run https://deno.land/x/dpx/cli.ts serve ./mocks
npx serve ./mocks
# Watch tests
deno test -A --watch fp_test.ts
```Or run all tests:
```
deno test
```Create mocks:
```bash
curl -H "Authorization: Bearer ey...w" https://api.spacetraders.io/v2/systems/X1-QB20/waypoints
```