Horizon API is a simple RESTful API built using Rust. This API allows you to create new users and fetch user information based on their username.
- Create User: Register a new user with a username and password.
- Get User: Retrieve user information by username.
-
Clone the repository:
git clone https://github.com/Stars-Beyond/horizon-api.git cd horizon-api
-
Setup the database: Run Diesel migrations to set up the database schema.
mv ./.env.example ./.env
To start the Rocket server, run:
cargo run
The server will be running at http://localhost:8000
.