Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusfg7/blog.rs
A simple blog made with Loco.rs
https://github.com/mateusfg7/blog.rs
blog loco-rs saas
Last synced: 21 days ago
JSON representation
A simple blog made with Loco.rs
- Host: GitHub
- URL: https://github.com/mateusfg7/blog.rs
- Owner: mateusfg7
- Created: 2023-12-22T21:44:47.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-29T10:54:52.000Z (about 1 month ago)
- Last Synced: 2024-10-02T08:54:59.184Z (about 1 month ago)
- Topics: blog, loco-rs, saas
- Language: Rust
- Homepage:
- Size: 124 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to Loco :train:
Loco is a web and API framework running on Rust.
This is the **SaaS starter** which includes a `User` model and authentication based on JWT.
## Quick Start
You need:
* A local postgres instance
* A local Redis instanceCheck out your development [configuration](config/development.yaml).
> To configure a database , please run a local postgres database with
loco:loco
and a db namedloco_app
:docker run -d -p 5432:5432 -e POSTGRES_USER=loco -e POSTGRES_DB=loco_app -e POSTGRES_PASSWORD="loco" postgres:15.3-alpine
Now start your app:
```
$ cargo loco start
Finished dev [unoptimized + debuginfo] target(s) in 21.63s
Running `target/debug/myapp start`:
:
:controller/app_routes.rs:203: [Middleware] Adding log trace id
▄ ▀
▀ ▄
▄ ▀ ▄ ▄ ▄▀
▄ ▀▄▄
▄ ▀ ▀ ▀▄▀█▄
▀█▄
▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▀▀█
██████ █████ ███ █████ ███ █████ ███ ▀█
██████ █████ ███ █████ ▀▀▀ █████ ███ ▄█▄
██████ █████ ███ █████ █████ ███ ████▄
██████ █████ ███ █████ ▄▄▄ █████ ███ █████
██████ █████ ███ ████ ███ █████ ███ ████▀
▀▀▀██▄ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ██▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀started on port 3000
```## Getting help
Check out [a quick tour](https://loco.rs/docs/getting-started/tour/) or [the complete guide](https://loco.rs/docs/getting-started/guide/).