Skip to content

User can post status, location check in, view others post, pinned posts after JWT based authentication.

Notifications You must be signed in to change notification settings

hnjaman/social-media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Technologies used

  • Java 8
  • Spring Boot
  • Spring Security
  • JWT [JSON Web Token]
  • Spring Data JPA [Hibernate]
  • MYSQL
  • Logback
  • Thymeleaf
  • Maven

System configuration prerequisites to run the application

1. Clone the project

Open terminal and run

git clone https://github.com/hnjaman/social-media.git

In your current directory social-media directory will be created.

2. Install Java and Maven

Install java 8 or higher version and Apache Maven

3. Integrate a MySQL database with the application

Just two table are used here
ER Diagram

Note: No need to create any table. It will create by itself when run the application. Just create post database and put its credential in application.properties file

spring.datasource.url=jdbc:mysql:https://locathost/post?createDatabaseIfNotExist=true&autoReconnect=true&useSSL=false
spring.datasource.username=username
spring.datasource.password=password

Run the application

cd social-media/
mvn clean install
mvn spring-boot:run

go to your browser, visit http:https://localhost:8080/home and you will see with all public posts

Home page

Home page with all public posts

Sign up

Sign up page

Login

Login page

All users post

All user posts

Logged user's posts

Logged user posts

Make a new post

Add new post

Edit a post

Edit post

Logout

Logout

Releases

No releases published

Packages

No packages published