Welcome to the Cuty.ink Server! This project is a Rust server for Cuty.ink. Built using Rocket, Diesel, and SQLite, the server should be able to handle a lot of concurrent requests at the same time. Frontend source code can be found here
To get started with the Cuty.ink Server, follow these steps:
- Make sure you have Rust and Cargo installed on your machine.
- Clone this repository to your local machine:
git clone https://github.com/fazatholomew/cuty-server
- Navigate to the cloned repository:
cd cuty-ink-rocket-rust-server
- Write
.env
file. Below is an example:
DATABASE_URL=database/database.db
SECRET_KEY=6LdQTcIjAAAAAERkhAFR4Rphe-HqQMAp9hlN_pk2
FRONT_END_URL=http://localhost:5173
- Install Diesel CLI
cargo install diesel_cli
- Run Diesel migration
diesel migration run
- Build the project using Cargo:
cargo build
- Run the server:
cargo run
We welcome contributions to the Cuty.ink Server! If you want to contribute, please follow these steps:
- Fork this repository.
- Create a new branch for your changes.
- Make your changes and commit them to your branch.
- Push your changes to your fork.
- Open a pull request against the
master
branch of this repository.
Thank you for considering contributing to the Cuty.ink Server! 🎉