Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fazatholomew/cuty-server
Server for Cuty.ink
https://github.com/fazatholomew/cuty-server
diesel-rs rocket-rust rust-lang sql
Last synced: 4 days ago
JSON representation
Server for Cuty.ink
- Host: GitHub
- URL: https://github.com/fazatholomew/cuty-server
- Owner: Fazatholomew
- Created: 2023-01-02T16:00:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T10:55:07.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T02:23:14.779Z (about 2 months ago)
- Topics: diesel-rs, rocket-rust, rust-lang, sql
- Language: Handlebars
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cuty.ink Server 🚀🦀
Welcome to the Cuty.ink Server! This project is a Rust server for [Cuty.ink](https://cuty.ink). Built using [Rocket](https://rocket.rs/), [Diesel](https://Diesel.rs), and [SQLite](https://www.sqlite.org/index.html), the server should be able to handle a lot of concurrent requests at the same time. Frontend source code can be found [here](https://github.com/fazatholomew/cuty)
## 🚀 Getting Started
To get started with the Cuty.ink Server, follow these steps:
1. Make sure you have [Rust](https://www.rust-lang.org/) and [Cargo](https://doc.rust-lang.org/cargo/) installed on your machine.
2. Clone this repository to your local machine:```bash
git clone https://github.com/fazatholomew/cuty-server
```3. Navigate to the cloned repository:
```bash
cd cuty-ink-rocket-rust-server
```4. Write `.env` file. Below is an example:
```bash
DATABASE_URL=database/database.db
SECRET_KEY=6LdQTcIjAAAAAERkhAFR4Rphe-HqQMAp9hlN_pk2
FRONT_END_URL=http://localhost:5173
```5. Install Diesel CLI
```bash
cargo install diesel_cli
```5. Run Diesel migration
```bash
diesel migration run
```6. Build the project using Cargo:
`cargo build`
7. Run the server:
`cargo run`## 🤝 Contributing
We welcome contributions to the Cuty.ink Server! If you want to contribute, please follow these steps:
1. Fork this repository.
2. Create a new branch for your changes.
3. Make your changes and commit them to your branch.
4. Push your changes to your fork.
5. Open a pull request against the `master` branch of this repository.Thank you for considering contributing to the Cuty.ink Server! 🎉