From 749f9a41b2ee54630407438e7a671b56827b36bf Mon Sep 17 00:00:00 2001 From: GuwandykA Date: Tue, 4 Aug 2026 12:26:57 +0500 Subject: [PATCH] added readme --- README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/README.md b/README.md index e69de29..8f74d3c 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,65 @@ +## Repository layout + +| Path | Role | +|------|------| +| [`bankline/`](bankline/) | Go HTTP API — Gin, PostgreSQL, Swagger; admin CMS endpoints and public client API | +| [`frontend/`](frontend/) | Static public website — HTML, Tailwind CSS / DaisyUI, Swiper | + +## Stack + +**Backend (`bankline`)** + +- Go, Gin, JWT Bearer auth +- PostgreSQL +- MinIO (object storage) +- Swagger / OpenAPI (`swaggo`) + +**Frontend (`frontend`)** + +- Static HTML pages +- Tailwind CSS 3 + DaisyUI +- Swiper + +## Features + +- **Admin API** — authenticate and manage banners, news, categories, sub-categories, currency content, static pages, and settings +- **Client API** — public read endpoints for the same content domains, consumed by the website +- **Multilingual fields** — content stored and returned per language (TM / RU / EN) +- **API docs** — Swagger UI when the backend is running + +## Quick start + +### Backend (`bankline`) + +Requires Docker and Docker Compose. + +```bash +cd bankline +docker compose up -d --build +``` + +- API: `http://localhost:5050` +- Base path: `/v1` +- PostgreSQL: host port `5424` + +Database migrations (golang-migrate CLI): + +```bash +make create-migration name='migration_name' +make migrate +make migrate-rollback +``` + +See [`bankline/README.md`](bankline/README.md) for more backend detail. + +### Frontend (`frontend`) + +```bash +cd frontend +npm i +npx tailwindcss -i assets/css/app.css -o src/css/app.css --minify +``` + +Serve or deploy the contents of `frontend/src` as static files. Point the site at the running API for dynamic content (news, banners, settings, etc.). + +See [`frontend/readme.md`](frontend/readme.md) for the same build commands.