Your cozy corner for reading your favorite manga! 🌸📚
- Browse Manga: Explore a vast amount of mangas.
- Favorite Manga: Soon.
- Reading History: Soon.
- Profiles: Soon.
- Self-Hosted: The website is self-hosted on Hetzner.
- Front End: NextJS
- Back End: Rust
- Data Source: Mangadex API
Make sure you have the following installed:
- Bun
- Rust
- Git
-
Clone the repository:
git clone https://github.com/yorunoken/hanami-manga.git cd hanami-manga
-
Set up root:
bun install
-
Configure environment variables:
For the backend: - Navigate to the
backend
folder - Rename.env.example
to.env
- Open.env
and fill it in:LIBSQL_URL= LIBSQL_TOKEN= PORT=8000
For the frontend: - Navigate to the
frontend
folder - Rename.env.example
to.env
BACKEND_PORT=8000 PORT=3000 DISCORD_CLIENT_ID= # Your Discord client ID. Can be found in `https://discord.com/developers/applications/ID/oauth2` DISCORD_CLIENT_SECRET= # Your Discord client secret. Can be found in `https://discord.com/developers/applications/ID/oauth2` NEXTAUTH_URL= # This will be the callback URL, `http://localhost:{PORT}` if you're in dev, and the url of the website if in prod. NEXTAUTH_SECRET= # The secret code for auth, can get a new one by executing `openssl rand -hex 32`
-
Install the front end dependencies:
cd frontend && bun install
-
Build backend and frontend
bun run build
-
Start the server:
bun run start
-
Open your browser and navigate to
http://127.0.0.1:PORT
to see Hanami Manga in action!
Hanami Manga is self-hosted on Hetzner. Here are the general steps to deploy it:
- Build the front end and back end as described in the Installation section.
- Set up a reverse proxy (e.g., Nginx) to serve the front end and back end.
- Ensure your server has the necessary environment variables and dependencies installed.
I welcome contributions! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeatureName
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeatureName
). - Open a pull request.
For any questions or feedback, please reach out to me at [contact@yorunoken.com].
Enjoy your manga journey with Hanami Manga! 🌸💖