Skip to content

Latest commit

 

History

History
executable file
·
73 lines (55 loc) · 2.33 KB

README.md

File metadata and controls

executable file
·
73 lines (55 loc) · 2.33 KB

Infomud.com (Springboot/javascript)

Sourcecode for infomud.com

Technology Stack

Component Technology
Backend (REST) SpringBoot 1.4 (Java)
Security Token Based (Spring Security and JWT )
REST Documentation Swagger UI / Springfox and ReDoc
REST Spec Open API Standard
In Memory DB H2
Persistence JPA
Server Build Tools Maven(Java)
Client Build Tools TBD
Frontend TBD
Gateway Service Netflix zuul
Localization

Build Instruction

Prerequisite (Ensure you have this installed before proceeding further)

  • Java 8
  • Maven 3.3.9
  • Node 7.2.1, npm 3.9.5

Clone the repo in a folder

Install REST Backend

#navigate to the root folder where pom.xml is present 
mvn clean install

Install Frontend

Start the API and WebUI server

# Start API server (9119)
# port and other configurations for API servere is in [./cofig/application.properties](https://github.com/mrin9/Angular2_SpringBoot/blob/master/config/application.properties) file
java -jar ./target/infomud-1.0.0.jar

Login Credentials

demo:demo
admin:admin
inactive:inactive

To get an authentication token

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"username": "demo", "password": "demo" }' 'http://localhost:9119/session'

or POST the username and password to http://localhost:9119/session

after you get the authentication token you must provide this in the header for all the protected urls

curl -X GET --header 'Accept: application/json' --header 'Authorization: [replace this with token ]' 'http://localhost:9119/version'

Deploy in Heroku

  • Our Heroku App is connected to github source which makes it easy to deploy directly from git hub
  • Navigate to deploy section of infomud app
  • scroll to the bottom, under the section Manual Deploy, select the Master branch and click on 'Deploy Branch'