Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/differentialorange/t3-basic-app
Tarantool 3 basic data storage application
https://github.com/differentialorange/t3-basic-app
Last synced: 1 day ago
JSON representation
Tarantool 3 basic data storage application
- Host: GitHub
- URL: https://github.com/differentialorange/t3-basic-app
- Owner: DifferentialOrange
- Created: 2024-04-01T14:20:24.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-04-05T15:13:45.000Z (8 months ago)
- Last Synced: 2024-04-06T13:26:38.878Z (8 months ago)
- Language: Lua
- Size: 138 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To build the artifact, run
```bash
tt pack tgz --with-binaries
```To set up etcd config storage, run
```bash
etcd
``````
2024-04-02 11:18:59.429663 I | embed: listening for peers on http://localhost:2380
2024-04-02 11:18:59.429692 I | embed: listening for client requests on localhost:2379
``````bash
ETCDCTL_API=3 etcdctl user add root:topsecret
ETCDCTL_API=3 etcdctl role add myapp_config_manager
ETCDCTL_API=3 etcdctl role grant-permission myapp_config_manager --prefix=true readwrite /myapp/
ETCDCTL_API=3 etcdctl user add sampleuser:123456
ETCDCTL_API=3 etcdctl user grant-role sampleuser myapp_config_manager
ETCDCTL_API=3 etcdctl auth enable
```To publish a configuration
```bash
tt cluster publish "http://sampleuser:123456@localhost:2379/myapp/" source.yaml
```To start an application
```bash
tt start
```Additionally
```bash
ETCDCTL_API=3 etcdctl role grant-permission myapp_config_manager --prefix=true readwrite /myapp_migrations/ --user="root:topsecret"
```