Giter Club home page Giter Club logo

studyabroadlovelysemesterapplication's Introduction

Salsa Project

Semester Abroad Lovely Semester Application

INSA Toulouse ©2018-2019

A platform for INSA Toulouse organisation for student's study abroad semester.

Sumary

  • Getting started
  • Project convention
  • Model architecture
  • Network topology
  • Documentation
  • Authors

Getting started

Required

  • Java jdk 1.8
  • Node js

Installation instruction

TODO

Run salsa-frontend

To run the user interface, first access to the sub-project directory:

cd salsa-frontend

Then update dependencies and launch it up

salsa-frontend > npm install
salsa-frontend > ng serve --o

Attention if you wish to launch it from project root: (untested)

ng serve --prod --base-href=../salsa-frontend/ 

Clone project from github

IntelliJ Jetbrains

  • Choose New > Project from Version Control > Git > Fill with URL of this Git
  • Wait for loading
  • Install Lombok plugin if you have error with log somewhere in the code.
  • Click Edit Configuration (up ahead) > Click the + in the up left > Spring Boot > Fill the Name, in Main class Choose SalsaWebappApplication.java
  • Install PlantUML if you want to work with conception.
  • Right click on project > New > Edit Files Templates.. > Click on + under tab Files > Fill in Name: UML Salsa sequence, fill the following code in template:
@startuml

hide footbox
title Service: functionality
actor Actor
participant Platform
entity Service

Actor -> Platform : POST(params)
activate Platform
alt try
    Platform -> Service : do(Instance instance)
    activate Service
    Service -> Platform : return Result result
    deactivate Service
    
    Platform -> User : HTTP/OK, msg: result
    
else catch Exception e
    
    Platform -> User: HTTP/<code>, msg: e
    deactivate Plarform
end
@enduml

Eclipse Spring Tool

TODO

Project convention

Global organisation

  • The core application consists of 2 modules: salsa-webapp and salsa-model
  • The client front-end (GUI) is in sub-project salsa-front
  • All other modules are webservice
  • The sequence diagrams (PlantUML) are in conception

Name convention

  • Consisting of module: Main application's name prefixed with salsa-*, web service prefixed with ws-*
  • All Controller class suffixed with *Controller
  • All service class suffixed with *Service
  • So on with *Repository, *Exception, *Advice
  • For plantUML files: <service name>_<functionality>.puml

Detail organisation

  1. In salsa-model:

    1. package fr.insa.soa.model.entities contains entities.
    2. package fr.insa.soa.model.exception relies on exception when finding in database.
    3. package fr.insa.soa.model.repository has interface (the code is autogenerated by Spring).
  2. In salsa-webapp:

    1. package fr.insa.soa.advisor translates *Exception from fr.insa.soa.model.exception to Http response.
    2. package fr.insa.soa.consumer connect with outer (Database, Webservice, ...)
    3. package fr.insa.soa.controller has controllers and business logic.

Model architecture

TODO

Network topology

TODO

  • front-end port: 80
  • webapp port : 9000
  • ws-authentication port: 9001
  • ws-content port: 9002
  • services ports : > 9000

Documentaion

TODO

Authors

  • Duc Hau NGUYEN
  • Thien Nhat VAN
  • Fatima LALAOI
  • Constantin DOGGYDOG
  • Adrien GONZALEZ

Put the code into template :

@startuml

hide footbox
title Service: functionality
actor Actor
participant Platform
entity Service

Actor -> Platform : POST(params)
activate Platform
alt try
    Platform -> Service : do(Instance instance)
    activate Service
    Service -> Platform : return Result result
    deactivate Service
    
    Platform -> User : HTTP/OK, msg: result
    
else catch Exception e
    
    Platform -> User: HTTP/<code>, msg: e
    deactivate Platform
end
@enduml

Source for resolved problems:

  1. Composite key problem: Example in Speciality Entity class

  2. Attention Please keep the .iml files for those who work with Jetbrains IDE.

  3. Other problems ...

studyabroadlovelysemesterapplication's People

Contributors

nguyen-duchau avatar git-adri avatar tinhte96 avatar

Stargazers

 avatar

Watchers

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