Skip to content

Commit 937d4d9

Browse files
committed
Merge #173: Update README
3edd507 docs: [#97] update README (Jose Celano) Pull request description: Top commit has no ACKs. Tree-SHA512: cb0002a0733e9ae5e2648d3bff3ad0fbb020f385caec68b77fac74f54af249504fd9e8ad4ff499e223bbdc8f653061b8916580ed7ea51d077c1e057e358b93c0
2 parents a47c99b + 3edd507 commit 937d4d9

File tree

2 files changed

+32
-45
lines changed

2 files changed

+32
-45
lines changed

COPYRIGHT

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ licensed under the GNU Affero General Public License, Version 3.0 <LICENSE-AGPL_
99
Except as otherwise noted (below and/or in individual files), Torrust-Index-Backend is licensed under the MIT-0 license <LICENSE-MIT_0> for all commits made after 5 years of merging. This license applies to the version of the files merged into the Torrust-Index-Backend project at the time of merging, and does not apply to subsequent updates or revisions to those files.
1010

1111
The contributors to the Torrust-Index-Backend project disclaim all liability for any damages or losses that may arise from the use of the project.
12-

README.md

Lines changed: 32 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,56 @@
11
# Torrust Index Backend
22

3-
This repository serves as the backend for the [Torrust Index](https://github.com/torrust/torrust-index) project, that implements the [Torrust Index Application Interface](https://github.com/torrust/torrust-index-api-lib).
3+
[![Development Checks](https://github.com/torrust/torrust-index-backend/actions/workflows/develop.yml/badge.svg)](https://github.com/torrust/torrust-index-backend/actions/workflows/develop.yml) [![Publish crate](https://github.com/torrust/torrust-index-backend/actions/workflows/publish_crate.yml/badge.svg)](https://github.com/torrust/torrust-index-backend/actions/workflows/publish_crate.yml) [![Publish Docker Image](https://github.com/torrust/torrust-index-backend/actions/workflows/publish_docker_image.yml/badge.svg)](https://github.com/torrust/torrust-index-backend/actions/workflows/publish_docker_image.yml) [![Publish Github Release](https://github.com/torrust/torrust-index-backend/actions/workflows/release.yml/badge.svg)](https://github.com/torrust/torrust-index-backend/actions/workflows/release.yml) [![Test Docker build](https://github.com/torrust/torrust-index-backend/actions/workflows/test_docker.yml/badge.svg)](https://github.com/torrust/torrust-index-backend/actions/workflows/test_docker.yml)
44

5-
We also provide the [Torrust Index Frontend](https://github.com/torrust/torrust-index-frontend) project, that is our reference web-application that consumes the API provided here.
5+
This repository serves as the backend for the [Torrust Index](https://github.com/torrust/torrust-index) project, which implements the [Torrust Index Application Interface](https://github.com/torrust/torrust-index-api-lib).
66

7-
## Documentation
8-
9-
You can read the Torrust Index documentation [here](https://torrust.com/torrust-index/install/#installing-the-backend).
10-
11-
## Installation
7+
We also provide the [Torrust Index Frontend](https://github.com/torrust/torrust-index-frontend) project, which is our reference web application that consumes the API provided here.
128

13-
1. Setup [Rust / Cargo](https://www.rust-lang.org/) in your Environment.
9+
![Torrust Architecture](https://raw.githubusercontent.com/torrust/.github/main/img/torrust-architecture.webp)
1410

15-
2. Clone this repo.
11+
## Key Features
1612

17-
3. Set the database connection URI in the projects `/.env` file:
13+
* [X] Rest API
14+
* [X] Categories and tags
15+
* [X] Image proxy cache
1816

19-
```bash
20-
cd torrust-index-backend
21-
echo "DATABASE_URL=sqlite://data.db?mode=rwc" >> .env
22-
```
17+
## Getting Started
2318

24-
4. Install sqlx-cli and build the sqlite database:
19+
Requirements:
2520

26-
```bash
27-
cargo install sqlx-cli
28-
sqlx db setup
29-
```
21+
* Rust Stable `1.68`
3022

31-
5. Build the binaries:
23+
You can follow the [documentation](https://docs.rs/torrust-index-backend) to install and use Torrust Index Backend in different ways, but if you want to give it a quick try, you can use the following commands:
3224

33-
```bash
34-
cargo build --release
35-
```
25+
```s
26+
git clone https://github.com/torrust/torrust-index-backend.git \
27+
&& cd torrust-index-backend \
28+
&& cargo build --release
29+
```
3630

37-
6. Run the backend once to generate the `config.toml` file:
31+
And then run `cargo run` twice. The first time to generate the `config.toml` file and the second time to run the backend with the default configuration.
3832

39-
```bash
40-
./target/release/torrust-index-backend
41-
```
33+
After running the tracker the API will be available at <http://localhost:3000>.
4234

43-
7. Review and edit the default `/config.toml` file.
44-
45-
> _Please view the [configuration documentation](https://torrust.github.io/torrust-tracker/CONFIG.html)._
46-
47-
8. Run the backend again:
35+
## Documentation
4836

49-
```bash
50-
./target/torrust-index-backend
51-
```
37+
The technical documentation is available at [docs.rs](https://docs.rs/torrust-index-backend).
5238

53-
## Contact and Contributing
39+
## Contributing
5440

55-
Please consider the [Torrust Contribution Guide](https://github.com/torrust/.github/blob/main/info/contributing.md).
41+
We welcome contributions from the community!
5642

57-
Please report issues:
43+
How can you contribute?
5844

59-
* Torrust Index Backend specifically: [here](https://github.com/torrust/torrust-index-backend/issues).
60-
* Torrust Index in general: [here](https://github.com/torrust/torrust-index/issues).
45+
* Bug reports and feature requests.
46+
* Code contributions. You can start by looking at the issues labeled ["good first issues"](https://github.com/torrust/torrust-index-backend/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
47+
* Documentation improvements. Check the [documentation](torrust-index-backend) for typos, errors, or missing information.
48+
* Participation in the community. You can help by answering questions in the [discussions](https://github.com/torrust/torrust-index-backend/discussions).
6149

62-
---
50+
## License
6351

64-
## Credits & Sponsors
52+
The project is licensed under a dual license. See [COPYRIGHT](./COPYRIGHT).
6553

66-
This project was developed by [Dutch Bits](https://dutchbits.nl) for [Nautilus Cyberneering GmbH](https://nautilus-cyberneering.de/).
54+
## Acknowledgments
6755

68-
The project has been possible through the support and contribution of both Nautilus Cyberneering, its team and collaborators, as well as that of our great open source contributors. Thank you to you all!
56+
This project was a joint effort by [Nautilus Cyberneering GmbH](https://nautilus-cyberneering.de/), [Dutch Bits](https://dutchbits.nl) and collaborators. Thank you to you all!

0 commit comments

Comments
 (0)