Skip to content

Backend for an central repository of tech companies in Leipzig

Notifications You must be signed in to change notification settings

jeremypuchta/leipzig-tech-ba

Repository files navigation

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

About

Backend for an central repository of tech companies in Leipzig

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •