Skip to content

A Java Spring Web Service - to be paired with my project angular-poc

Notifications You must be signed in to change notification settings

jimy74/core-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core API

Description

The Core API is responsible for exposing endpoints to create, read, update and delete projects (CRUD operations).

This is made possible by exposing a variety of REST APIs and accessing the database.

Open API / Swagger UI

You can discover the API using the generated Swagger UI here.

Security

For the moment, the APIs are protected with Basic Authentication.

  • user: "user"
  • password: "1234"

Note: This will be improved in the future before going live ! ! !

PostgreSQL

You can for now just run the postgres:latest in Docker Desktop.

Each time it change to a new port, so just check it's the good one in application.properties.

Manage the database in pgadmin4

To view the data in a more gentle manner using pgadmin4, you can use

docker run -p 5050:80 -e '[email protected]' -e 'PGADMIN_DEFAULT_PASSWORD=admin' -d --name pgadmin4 dpage/pgadmin4

After a few seconds to one minute, you should to access it here.

Log in:

Click Add New Server and fill in the following fields:

  • Server Name: pg (or whatever you prefer)

On the Connection tab:

  • Host: host.docker.internal
  • Port: 49154
  • Username: postgres
  • Password: postgrespw

Credits

Created by Jimmy Paris.

About

A Java Spring Web Service - to be paired with my project angular-poc

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages