GithubHelp home page GithubHelp logo

brainagenet / social-network-spring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asaunin/social-network-spring

0.0 0.0 0.0 269 KB

Social Network application (spring boot data mvc security restful cors xsrf angular swagger facebook / google signin)

Home Page: https://social-network-angularjs.herokuapp.com/

Shell 4.04% Batchfile 2.86% Java 48.72% HTML 23.40% JavaScript 17.91% CSS 3.07%

social-network-spring's Introduction

Spring Boot version of the Social Network Application Build Status

Spring Boot version of the Social Network Application

Stack of technologies

Spring: Boot, MVC, Data, Security

Web: AngularJS, Bootstrap, Bower, Gulp

Tests: JUnit, Mockito, AssertJ

CI: Travis

Third-party libraries: Letter avatar (by Artur Heinze)

Functionality

  • Sign-In / Sign-Up
  • Send messages
  • Add / remove friends
  • Update contact information / Change password
  • View person & friend lists
  • View person's contact information
  • View last messages
  • Profile images / avatars
  • Pagination
  • Search

How to Build & Run application from Intellij IDEA

git clone https://github.com/ASaunin/social-network-spring.git
cd social-network-spring
./mvnw clean install

Start Spring boot application from the main class: org.asaunin.socialnetwork.SocialNetworkApplication

Open http://localhost:8080 in your browser

Credentials

Swagger support

Use Swagger-UI endpoint to get a server-side API description

Social sign-in feature

To enable Google & Facebook sing-in feature, register appropriate application and set it's credentials in application.properties file

The links below to get an application ids and secrets:

Deployment

Clone repository

git clone https://github.com/ASaunin/social-network-spring.git
cd social-network-spring

Configure ${SOCIAL_NETWORK_API_URL} and ${SOCIAL_NETWORK_WEB_URL} system variables according to your deployment urls

Configure URL constant in app.js to be equal to ${SOCIAL_NETWORK_API_URL} value

NB: It is considered to be http://localhost:8080 by default both for api & web components

Build your application:

./mvnw clean install

Deploy jar-file from api\target folder to the backend-server

Deploy war-file from webapp\target folder to the web-server

Open ${SOCIAL_NETWORK_WEB_URL} in your browser and enjoy!

Heroku deployment example

git checkout heroku
./mvnw clean install
heroku plugins:install heroku-cli-deploy
heroku deploy:jar api/target/social-network-api-1.0.0-SNAPSHOT.jar --app social-network-spring
heroku deploy:war webapp/target/social-network-web-1.0.0-SNAPSHOT.war --app social-network-angularjs

social-network-spring's People

Contributors

asaunin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.