StartPage is a start page for your browser.
Create and manage different categories to organize your websites efficiently.
Add, edit, and remove your favorite websites within each category.
Manage user's accounts.
This is this the backend service of the project. You can find the frontend here.
- Clone the repository:
git clone https://github.com/huangcheng/startpage-server.git
- Make sure you have the
sqlx-cli
installed with themysql
feature enabled:
cargo install sqlx-cli --no-default-features --features native-tls,mysql
- Run the database migrations:
export DATABASE_URL=mysql://<username>:<password>@<host>:<port>/<database>
sqlx migrate run
or
sql migrate run --database-url mysql://<username>:<password>@<host>:<port>/<database>
-
Configure the server by copying the
Rocekt.toml.exmaple
file toRocket.toml
and editing it to your needs. -
Run the server:
cargo run
The designer of the project is huqinxue