voicegardens/README.md

111 lines
2.3 KiB
Markdown
Raw Normal View History

2019-12-21 12:49:53 +01:00
# voicegardens
2019-12-22 05:41:56 +01:00
> https://voicegardens.org
2019-12-22 05:42:18 +01:00
>
2019-12-22 05:41:56 +01:00
> http://doesitsparkjoy.voicegardens.org
2019-12-21 13:13:23 +01:00
## @ Interwebz
* [barbican.org.uk: This is Public Space](https://www.barbican.org.uk/whats-on/2019/event/this-is-public-space)
* [upprojects.com: This is Public Space](https://www.upprojects.com/projects/this-is-public-space/)
2019-12-16 12:10:55 +01:00
## Meanwhile, in the padiverse
* [kari.this.is.public.space](https://pad.vvvvvvaria.org/kari.this.is.public.space) (private)
* [vocoder](https://pad.vvvvvvaria.org/vocoder) (public)
## Doodle Doodle Doo
* [wet-signal-voice-garden.pdf](./media/wet-signal-voice-garden.pdf)
2019-12-16 12:11:29 +01:00
* [staringcaring.com](http://staringcaring.com/)
## Hackity Hack Hack
2019-12-16 11:35:41 +01:00
Please note, these commands were run on a Debian Stretch system.
### Install packed lunch
```bash
$ sudo apt install -y make git
```
2019-12-16 10:09:15 +01:00
### Get your discount source code
```bash
2019-12-21 12:49:53 +01:00
$ git clone ssh://gitea@vvvvvvaria.org:12345/varia/voicegardens.git
$ cd voicegardens
2019-12-16 10:09:15 +01:00
```
### Do the Python dance
2019-12-21 12:49:53 +01:00
```bash
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
2019-12-16 10:09:15 +01:00
```
2020-01-05 12:05:45 +01:00
### The curious case of GDAL
It's really hard to install GDAL. We need it to generate the tiles for the map.
Here is one way to do it but you might run into problems and need to research a
bit.
```bash
$ sudo apt install -y libgdal-dev
$ pip install pygdal=="`gdal-config --version`.*"
$ pip install gdal2tiles
```
And then it should be possible to run the tile generation.
```bash
$ gdal2tiles.py -l -p raster -z 0-5 -w none tiles2
```
You may need to use `python gdal2tiles.py` instead?
2019-12-16 10:09:15 +01:00
### Run the server
2019-12-21 12:49:53 +01:00
```bash
$ make dev-serve
```
2019-12-21 12:49:53 +01:00
### Deploy the site
2019-12-21 13:13:07 +01:00
You can add the following to your SSH configuration:
```
Host voicegardens.org
Hostname voicegardens.org
User voicegardens
Port 12345
IdentityFile ~/.ssh/my-ssh-secret-key-file
```
(Where you should replace "my-ssh-secret-key-file" with the real filename.)
Make sure you can SSH into the server.
```bash
$ ssh voicegardens.org
$ sudo -i # you have root access too
```
2019-12-22 05:36:48 +01:00
Then it's possible to release the site with the following targets.
2019-12-21 13:13:07 +01:00
2019-12-21 12:49:53 +01:00
```bash
2019-12-22 05:36:48 +01:00
$ make doesitsparkjoy # https://doesitsparkjoy.voicegardens.org
$ make voicegardens # https://voicegardens.org
2019-12-21 12:49:53 +01:00
```
### Layers of the Onion
* [Flask](http://flask.palletsprojects.com/en/1.1.x/)
* [Leaflet](https://leafletjs.com)
* [Mappa.js](https://mappa.js.org)
* [p5.js](https://p5js.org)
## License
TBD.