Skip to content

webmapper/koudeoorlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koudeoorlog

App

development

$ cp .env.sample .env
$ vi .env
$ docker-compose -f ./docker/docker-compose-prod.yml up -d

Vue graphql client

https://vue-apollo.netlify.com/guide/installation.html#vue-cli-plugin

Queries

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]

Server

Setup

$ cd packages/server
$ npm install

Development

npm run watch

Test uploading by going to

$ cd packages/servertest
$ npm install
$ npm start

Endpoints

  • /storage/upload
    • ! file object
    • ! poi_id
    • ! title
    • ! year
    • ? email
    • ? author
  • /storage/file/${file_key}
  • /data/load?url=${url}

GraphQL Endpoint

//TODO

Production

$ cp .env.sample .env
$ vi .env
$ docker-compose -f ./docker/docker-compose-prod.yml up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published