vocabulary/README.md

38 lines
814 B
Markdown
Raw Normal View History

2026-12-02 23:01:03 +03:00
# Vocabulary
2026-12-02 19:50:14 +03:00
2026-12-02 23:01:03 +03:00
Vocabulary storage and quiz app for english learners
## Requirements
- React 19
- Java 21
- MySQL 8.4.3
## Setup
```bash
2026-12-03 00:16:47 +03:00
cd api && mvn spring-boot:run # database settings: src/main/resources/application.properties
cd web && npm install && npm run dev
```
## Docker
```bash
cp .env.example .env # set the database and API address
docker compose up -d --build
2026-12-02 23:01:03 +03:00
```
Production:
- Web: http://localhost/vocab-quiz
- API: http://localhost:8002/api-vocab
2026-12-03 00:16:47 +03:00
Development:
- Web: http://localhost:3000
2026-12-02 23:01:03 +03:00
## Scripts
| Command | Description |
2026-12-03 00:16:47 +03:00
|---|---|
| `api/`: `mvn test -Dtest='*ServiceTest'` | API tests, no database needed |
| `web/`: `npm test` | Web helper tests |
| `web/`: `npm run lint` | ESLint |
| `web/`: `npm run build` | Static export to `web/out` |
2026-12-02 23:01:03 +03:00
## Documentation
See the `docs/` folder.