Git Product home page Git Product logo

leipzig-tech-ba's Introduction

leipzig-tech-ba

leipzig-tech-ba

A repository for the backend of leipzigtech.de.

postgres and jar for dev-server or local development

  • adjust the path for the volume in docker-compose.yml for your environment
  • images will be build by docker compose if not available (use docker-compose build to rebuild images for postgres and jar/ba-app container)
  • docker-compose up -d for starting the postgres on port 5432 and the backend api on port 8080

Running backend spring boot

  • gradle build

  • Run 'BaApplication'

Starting backend on port 8080

Testing with DB

Connecting with DB

Make sure that you have free ports at 5432 (or 8080 for connecting with backend on localhost). Registered ssh public key on server required.

API

  • GET /companies/:id -> Returns a specific company with a given id

  • POST /companies -> Creates a new company based on a given JSON payload

      "ref":"134-ddssweeee-sss",
      "source":"gelbeSeiten",
      "name": "Microsoft",
      "sector":"Tech",
      "city":"Leipzig",
      "plz":"04155",
      "address":"Georg-Schumann-Straße 100",
      "phonenumber":"03416666666",
      "website":"microsoft.com",
      "email":"[email protected]"
  • DELETE /companies/:id -> Delete a specific company with a given id

  • GET /companies -> Returns all companies

The following query parameter should be supported by the upper endpoints:

  • name -> Name of the company / String
  • fuzzy -> Enable fuzzy search / Boolean (default: true)
  • orderBy -> sorts the records by "keyword" (default:name)
  • sort -> Order of results / Enum with Values ASC (ascending) and DESC (descending) (default: ASC)

GET /companies?name=Microsof&fuzzy=true&sort=DESC GET /companies?orderBy=create_at&fuzzy=true&sort=ASC

leipzig-tech-ba's People

Contributors

tzschiet avatar fabbby avatar jeremypuchta avatar fwenzel20 avatar

Watchers

James Cloos 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.