/rustjobs.cc

Jobs board for Rust developers

Primary LanguageRust

rustjobs.cc backend

http://rustjobs.cc backend API

Setup

Install Rust first

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Set the default toolchain

rustup default stable

Create database and setup Diesel

diesel setup

Run Diesel migrations

diesel migration run

Compile and run API (check .env file for settings)

cargo run

Usage

curl -i -H "Accept: application/json" http://localhost:5000/jobs

And the result example

HTTP/1.1 200 OK
content-length: 357
content-type: application/json
date: Mon, 11 May 2020 21:15:22 GMT

[{"id":1,"title":"Rust developer","description":"Hiring experienced Rust developer","salary":100000,"currency":"USD","apply_url":"http://smartapps.ru","job_city":"Kazan","job_email":"contact@smartapps.ru","company":"SmartApps","company_twitter":"smartapps","company_website":"http://smartapps.ru","company_logo":null,"slug":"contact@mail.com"}]%

License

MIT