Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
huangcheng committed Dec 1, 2023
1 parent 972d765 commit 21d4de5
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "startpage-server"
authors = ["HUANG Cheng <cheng@duck.com>"]
repository = "https://github.com/huangcheng/startpage-server"
version = "0.1.0"
edition = "2021"

Expand Down
61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# StartPage
**StartPage** is a start page for your browser.

![Home](docs/homepage.png)


## Features

![Login](docs/login.png)

### Categories

Create and manage different categories to organize your websites efficiently.

![Category](docs/category.png)

![Categoris Management](docs/categories_management.png)

### Sites
Add, edit, and remove your favorite websites within each category.

![Site](docs/site.png)

### User Management
Manage user's accounts.

![User Management](docs/user.png)

## Getting Started

This is this the backend service of the project. You can find the frontend [here](https://github.com/huangcheng/startpage-web).

### Installation
1. Clone the repository:
```bash
git clone https://github.com/huangcheng/startpage-server
```
2. Make sure you have the `sqlx-cli` installed with the `mysql` feature enabled:
```bash
cargo install sqlx-cli --no-default-features --features native-tls,mysql
```

3. Run the database migrations:
```bash
export DATABASE_URL=mysql://<username>:<password>@<host>:<port>/<database>
sqlx migrate run
```
or
```bash
sql migrate run --database-url mysql://<username>:<password>@<host>:<port>/<database>
```

4. Configure the server by copying the `Rocekt.toml.exmaple` file to `Rocket.toml` and editing it to your needs.

5. Run the server:
```bash
cargo run
```

## License
The designer of the project is [huqinxue](https://github.com/huqinxue)
Binary file added docs/categories_management.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/category.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/homepage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/site.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 21d4de5

Please sign in to comment.