Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shorten-url

A shorten URL service written in Rust.

This project is written in Rust, using Actix Web for web API service and Sea ORM for PostgreSQL database manipulation.

Get started

  1. Install Rust
  2. Clone the repo
  3. Run cargo run

Database migration

  1. Start PostgreSQL. You can either run it on your local machine or use docker.

  2. Install sea-orm-cli

    Before execute the following command, you might need to create the shorten_url database manually.

    cargo install sea-orm-cli
  3. Run migration command

    sea-orm-cli migrate up

Generate database entity code

sea-orm-cli generate entity \
  -u postgres://postgres:postgres@localhost:5432/shorten_url \
  -o src/entities

Replace the database URL with yours.

About

A Shorten URL service written in Rust.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages