$ cp .env.sample .env
$ vi .env
$ docker-compose -f ./docker/docker-compose-prod.yml up -d
https://vue-apollo.netlify.com/guide/installation.html#vue-cli-plugin
get all points
query PoiQuery {
poi {
situation
lng
lat
id
description
class
}
}
get all photos
query AllPhotos {
photo_upload {
created_at
author
email
file_key
id
poi_id
title
year
}
}
Get photos for point
query PhotosForPoint($poi_id: Int!) {
photo_upload(where: {poi_id: {_eq: !$poi_id}}) {
created_at
author
email
file_key
id
poi_id
title
year
}
}
Show a foto
http://serveraddress:port/storage/file/[file_key]
$ cd packages/server
$ npm install
npm run watch
Test uploading by going to
$ cd packages/servertest
$ npm install
$ npm start
- /storage/upload
- ! file object
- ! poi_id
- ! title
- ! year
- ? author
- /storage/file/${file_key}
- /data/load?url=${url}
//TODO
$ cp .env.sample .env
$ vi .env
$ docker-compose -f ./docker/docker-compose-prod.yml up -d