Files
comaps/tools/python/airmaps/sandbox/README.md
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

93 lines
1.3 KiB
Markdown

# Sandbox
This project can show how airmaps works on your computer.
## Setup
You must have [docker](https://docs.docker.com/get-docker/) and [docker-compose](https://docs.docker.com/compose/install/).
0. Change working directory:
```sh
$ cd omim/tools/python/airmaps/sandbox
```
1. Build airmaps service:
```sh
sandbox$ ./build.sh
```
2. Create storage(sandbox/storage directory):
```sh
sandbox$ ./create_storage.sh
```
Note: May be you need `sudo`, because `./create_storage.sh` to try change an owner of `sandbox/storage/tests` directory.
## Usage
### Starting
0. Change working directory:
```sh
$ cd omim/tools/python/airmaps/sandbox
```
1. Run all services:
```sh
sandbox$ docker-compose up
```
2. Open http://localhost in your browser.
Note: You can see the results of airmaps working in `sandbox/storage/tests`.
### Stopping
0. Change working directory:
```sh
$ cd omim/tools/python/airmaps/sandbox
```
1. Stop all services:
Push Ctrl+C and
```sh
sandbox$ docker-compose down
```
### Clean
#### Clean storage and intermediate files:
0. Change working directory:
```sh
$ cd omim/tools/python/airmaps/sandbox
```
1. Clean storage and intermediate files:
```sh
sandbox$ ./clean.sh
```
#### Remove images:
0. Change working directory:
```sh
$ cd omim/tools/python/airmaps/sandbox
```
1. Remove images:
```sh
sandbox$ docker-compose rm
```