GithubHelp home page GithubHelp logo

petfinder's Introduction

petfinder

REST backend for lost pets announcements application.

Run locally

  1. create directory structure data/db
  2. run mongoDb with command mongod --dbpath=data/db
  3. open root directory of petfinder project
  4. run ./gradlew bootRun To play with API install Postman and import postman collection(from postman directory) into Postman app.

Heroku deployment

Deploy to Heroku staging

run ./heroku-staging.sh

Get app's logs from Heroku

run heroku logs -a petfinder-yy

Get inside container

run heroku run bash -a petfinder-yy

Debug performance

Install heroku plugin ~~heroku plugins:install heroku-cli-java~~ and then you can run following commands:

heroku java:jconsole -a petfinder-yy
heroku java:visualvm -a petfinder-yy
heroku java:jmap -a petfinder-yy
heroku java:jstack -a petfinder-yy

It may be the case that for visualvm this command is needed:

jvisualvm -J-DsocksProxyHost=localhost -J-DsocksProxyPort=1080 --openjmx=:1099

fucking visualvm: jvisualvm -J-DsocksProxyHost=localhost -J-DsocksProxyPort=1080 --openjmx=:1098

Instance management

https://devcenter.heroku.com/articles/dynos#cli-commands-for-dyno-management

TODO

  1. unstable test SpotAdControllerTest.testSpotAdCreationNotifiesPetAdsOwners
  2. to think about id in db
  3. logging
  4. password validation(min length for example)
  5. lombok @NonNull accepts empty string. Validate for empty string where needed.

Computer Vision

When ad is created, CV determines breed. It can be array which is assigned to cvDefinedBreed field of petAd. Then the one who found pet, will take a picutre, CV will derive pet's breed(as array probably) and normal search request will be sent with additional cvDefinedBreed field.

petfinder's People

Contributors

yuryyaroshevich avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.