https://github.com/terror/crates.surf
Surf all the crates 🏄
https://github.com/terror/crates.surf
Last synced: 11 months ago
JSON representation
Surf all the crates 🏄
- Host: GitHub
- URL: https://github.com/terror/crates.surf
- Owner: terror
- License: cc0-1.0
- Created: 2023-07-15T03:53:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T14:26:49.000Z (over 1 year ago)
- Last Synced: 2025-02-15T09:37:17.563Z (11 months ago)
- Language: Rust
- Homepage: https://crates.surf
- Size: 159 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
## crates.surf 🏄
**crates.surf** is a full-text/semantic search engine for all 100k+ crates in
the rust ecosystem.

### Development
You'll need [docker](https://www.docker.com/),
[cargo](https://doc.rust-lang.org/cargo/) and [pnpm](https://pnpm.io/) installed
on your machine in order to get the project running locally.
First, mount local [postgres](https://www.postgresql.org/),
[elasticsearch](https://www.elastic.co/?ultron=B-Stack-Trials-AMER-CA-Exact&gambit=Stack-Core&blade=adwords-s&hulk=paid&Device=c&thor=elasticsearch)
and
[rabbitmq](https://www.cloudamqp.com/blog/part1-rabbitmq-for-beginners-what-is-rabbitmq.html)
instances with docker:
```bash
docker compose up -d
```
Spawn the server with a database name:
```bash
RUST_LOG=info cargo run serve --db-name=crates
```
Finally, spawn the svelte frontend:
```bash
pnpm run dev
```
By default, the server is listening on `http://localhost:8000` and the frontend
over at `http://localhost:5173`.