Skip to content

mg-rust/rustjobs.cc

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Jobs board for Rust developers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published