Skip to content

A Simple Social Media Backend API built with Java Spring Boot

Notifications You must be signed in to change notification settings

ZraelTz/social-media-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to build and run the application

Execute the following commands in the project's root directory (\api)

Build the App

To build this app

./mvnw clean install (./mvnw or mvnw depending on your OS)

Execute the App

To execute this app

mvn clean install

docker-compose build

docker-compose up

Login to the App

To login

username = zrael
password = $Password123

API Doc

To access the api swagger documentation

The swagger documentation can be found at http://localhost:8081/api/v1/swagger-ui.html

Brief Architecture

  • LANGUAGE: Java 17

  • FRAMEWORK: Spring Boot 3

  • Application Server : Embedded Apache Tomcat Server

  • DATABASE: H2 in memory file database (SQL implementation) with preloaded test data

  • ORM: Hibernate with Spring Data Jpa Implementation

  • AUTHENTICATION: Jwt

    • 1 day access token
    • 7 day refresh token
  • TEST FRAMEWORK:

    • Junit
    • Mockito
  • BUILD TOOL: Maven

  • CONTAINER VIRTUALIZATION: Docker (Docker compose for config)


More Documentation and API description can be found on the Swagger Doc.

About

A Simple Social Media Backend API built with Java Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published