Skip to content

alersrt/guestblog

Repository files navigation

Guest Blog

Guest blog with using such technology stack as Spring MVC, Spring Data, PostgreSQL and Spring Boot for autoconfiguration. You can to see the application here. This service has the next features:

  • REST-API
  • Cookie based authentication
  • stores images in the database

The main goal of this application is studying technology stack which was specified above. Consider it just as laboratory mouse.

1. Environment variables

  • GB_SERVER_PORT - port of this service
  • GB_POSTGRES_URL - url for PostgreSQL database
  • GB_POSTGRES_USERNAME - username of the database
  • GB_POSTGRES_PASSWORD - password for this username
  • OAUTH2_GOOGLE_CLIENT_ID
  • OAUTH2_GOOGLE_CLIENT_SECRET
  • OAUTH2_FACEBOOK_CLIENT_ID
  • OAUTH2_FACEBOOK_CLIENT_SECRET

2. REST API

The documentation about restpoints available by the next path: <this service url>/swagger-ui/index.html. You can read more about.

Credentials

The default credentials are

  • username: admin@test.dev
  • password: admin

There is also the user's account in testing purposes:

  • username: user@test.dev
  • password: password

Its possible to change it later.