https://github.com/mrin9/infomud
Website for various information
https://github.com/mrin9/infomud
Last synced: 4 months ago
JSON representation
Website for various information
- Host: GitHub
- URL: https://github.com/mrin9/infomud
- Owner: mrin9
- Created: 2016-12-31T19:11:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-01T00:12:07.000Z (over 9 years ago)
- Last Synced: 2026-01-14T21:59:52.649Z (5 months ago)
- Language: Java
- Size: 304 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Infomud.com (Springboot/javascript)
Sourcecode for infomud.com
### Technology Stack
Component | Technology
--- | ---
Backend (REST) | [SpringBoot 1.4](https://projects.spring.io/spring-boot) (Java)
Security | Token Based (Spring Security and [JWT](https://github.com/auth0/java-jwt) )
REST Documentation| [Swagger UI / Springfox](https://github.com/springfox/springfox) and [ReDoc](https://github.com/Rebilly/ReDoc)
REST Spec | [Open API Standard](https://www.openapis.org/)
In Memory DB | H2
Persistence | JPA
Server Build Tools| Maven(Java)
Client Build Tools| TBD
Frontend | TBD
Gateway Service | [Netflix zuul](https://github.com/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
```bash
#navigate to the root folder where pom.xml is present
mvn clean install
```
### Install Frontend
### Start the API and WebUI server ###
```bash
# 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
```
- Access Server at
**Login Credentials**
```
demo:demo
admin:admin
inactive:inactive
```
**To get an authentication token**
```bash
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
```bash
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](https://dashboard.heroku.com/apps/infomud/deploy/github)
- scroll to the bottom, under the section Manual Deploy, select the Master branch and click on 'Deploy Branch'