Ohara is an advanced search tool for the One Piece TCG.
This repository is a monorepo containing the code for the frontend (using React and Tailwind CSS), the backend (using FastAPI, Pydantic and SQLAlchemy) and the database (using PostgreSQL) of the application.
Clone the GitHub repository:
git clone https://github.com/mhu/ohara.git
Build the Docker images for the frontend and backend services respectively:
cd frontend && npm run build-docker image
cd backend && make build-docker-image
Run the application:
docker compose up
In order to run the application in development mode for the frontend, you can use the dedicated docker-compose.yaml, which includes volumes for the frontend to reflect the changes made to the code:
cd frontend
docker compose up
The same thing applies to the backend using its docker-compose.yaml:
cd backend
docker compose up
The database can be set up using the Adminer web interface (localhost:8080) and the setup.sql or the setup.csv file. It requires a password to be set, which can be done by setting the POSTGRES_PASSWORD
environment variable in the root of the project and for the frontend, the backend and the database respectively.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.