Files
main-tbbank/README.md
2026-08-04 18:01:20 +05:00

66 lines
1.6 KiB
Markdown

## 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: `/api/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.