Skip to content
/ ohara Public

Advanced card search website for the One Piece TCG

License

Notifications You must be signed in to change notification settings

mhu/ohara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ohara

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.

Installation

Clone the GitHub repository:

git clone https://github.com/mhu/ohara.git

Usage

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

Development

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.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GNU GPLv3