An open API service indexing awesome lists of open source software.

https://github.com/jcserv/rust-api-template

This template can be used to quickly bootstrap a Rust API server
https://github.com/jcserv/rust-api-template

api postgresql rust sqlx template

Last synced: 2 months ago
JSON representation

This template can be used to quickly bootstrap a Rust API server

Awesome Lists containing this project

README

          

# rust-api-template

![visitors](https://img.shields.io/endpoint?url=https://vu-mi.com/api/v1/views?id=jcserv/rust-api-template)

This template can be used to quickly bootstrap a Rust API server.

## getting started
1. Click the green "Use this template" button on the top of this page.
2. Replace all instances of `rust-api-template` with your project name.
3. Configure a .env file, based on the .env.example file.
4. Run the service with `make dev-db` and `make run`.

## prerequisites
- [cargo](https://github.com/rust-lang/cargo)
- [rustup](https://rustup.rs/)

## references
- [Actix Web Docs](https://actix.rs/docs/getting-started/)
- [Build a CRUD API with Sqlx and PostgreSQL](https://codevoweb.com/rust-build-a-crud-api-with-sqlx-and-postgresql/)