Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdvanes/lemonfarmer
https://github.com/mdvanes/lemonfarmer
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdvanes/lemonfarmer
- Owner: mdvanes
- Created: 2023-08-22T09:30:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-01T13:12:26.000Z (about 1 year ago)
- Last Synced: 2023-09-02T09:09:56.209Z (about 1 year ago)
- Language: TypeScript
- Size: 96.7 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
```