Skip to content

Social media app backend api with unit tests, built using Spring Boot, Hibernate.

License

Notifications You must be signed in to change notification settings

gormrgryn/socialmediarest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Social media app backend api with unit tests, built using Spring Boot, Hibernate.

REST API endpoints

  • User endpoints
    • "/user/" POST - create new user (registration)
    • "/user/{id}" GET - get user
    • "/user/posts/{id}" GET - get users posts
    • "/user/{id}" PUT - update user
  • Post endpoints
    • "/post/" POST - create new post
    • "/post/{id}" GET - get post
    • "/post/{id}" PUT - update post
    • "/post/{id}" DELETE - delete post

Executing program

Edit applicaion.properties file

spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}/{db_name}
spring.datasource.username={username}
spring.datasource.password={password}

Run your database, then run the app

cd socialmediarest
./mvnw spring-boot:run

Run Tests

./mvnw test

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Social media app backend api with unit tests, built using Spring Boot, Hibernate.

Topics

Resources

License

Stars

Watchers

Forks

Languages