Git Product home page Git Product logo

jb_viralgrowth_sm's Introduction

jb_viralgrowth_sm

Structure

Configuration

All properties of the web application are centralized in the properties file and are mapped by properties classes under the package xbc.jb.socialvg.refinv.properties:

src/main/resources/application.yml

Database

For simplicity I'm using H2 Database Engine for in-memory database, it can be simply migrated to alternative servers like MySQL By specifying the appropriate url in the properties file.

spring:  
  datasource:  
    url: jdbc:mysql://localhost:3306/db_name
  username: db_username 
  password: db_password
hibernate:  
  ddl-auto: update # create  
database: mysql

Properties

I made some properties of the web application in the property file to decouple them from the code and to make the application easily customizable.

webapp:
pagination:
page-size: 4
path:
file-sep: /
image-folder: /Users/abbesbes/images/
profile-def-img: /Users/abbesbes/images/default_profile.png

Description:

  • webapp: The root of the custom properties.
    • pagination:Properties of DB pagination.
      • page-size: The size of the page to be shown in the list / DB Page size.
    • path: Properties related to paths.
      • file-sep: File Seperator which is used for path building.
      • image-folder: The path of the folder wich contain the photos uploaded by users.
      • profile-def-img: Path to the default photo to be used as profile picture for users.

Usage

The Spring Boot Maven plugin collects all jars on the classpath and build a single executable .jar which will be running on the server.

So all we need is to build this .jar and execute it on the server.

Using IntelliJ IDEA

After cloning the repository simply import the project into IntelliJ IDEA as Maven Project by selecting the file pom.xml. After all dependencies are resolved, Press the run button to build and run the web application on the localhost.

Using Maven (CLI)

If Maven is installed so we can build and run the application as follows.

Building the Runnable .jar

From the project's root folder which contain the file pom.xml, we run the following command:

mvn install

Now a runnable .jar is created with the path refinv-0.0.1-SNAPSHOT.jar So we can execute it as follows:

java -jar target/refinv-0.0.1-SNAPSHOT.jar

Now the application is running on localhost.

Initilizer

I implemented an initilizer which create random users at the start of the application.

More customizations required !

Resources

Features / Perspectives

Endpoints

Magic Link

Example:

http://localhost:8080/invite?code=AXE-120260

Score Logic

Formule

Score += 1 / lev;

Where lev is the length of the transitive invitation.

Online Status

To be implemented !

jb_viralgrowth_sm's People

Contributors

xbluecode avatar

Watchers

James Cloos avatar  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.