GithubHelp home page GithubHelp logo

azargunazari / student-residence-service Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.81 MB

A full distributed system application built by Spring Boot technology.

License: MIT License

Java 64.40% Dockerfile 0.79% HTML 0.65% CSS 3.00% JavaScript 22.77% RAML 8.19% Shell 0.20%
spring-boot spring-gateway redis postgresql docker docker-compose reactjs open-api-v3 blue-print yaml

student-residence-service's Introduction

About Project

This project is about creating a REST API for the student residence service.

Configuration

To run the project you need:

  • maven
  • Java 8
  • Intellij
  • PostgresSQL (run docker image and create a database by name of StudentResidenceDB)

Run by docker compose

  • ./deploy.sh

Architecture used in the project

  • Microservices

Authorisation used in the project

  • OAUTH 2.0

Web Client/UI

  • React JS

To access the rest services use the below URL

  • localhost:9852/api/v1/
  • localhost:9852/api/v1/bulletinboard
  • localhost:9852/api/v1/appliances

Running with the help of postman

Getting the access token [JWT TOKEN]

  • localhost:9852/oauth/token [Post].
  • in the authorization , Type =BasicAuth username: browser passowrd: browser
  • in the header section, enter the following key and the value
  • key = Content-Type and value= application/x-www-form-urlencoded
  • in the body enter the following key and value
  • key = "username" value = client username
  • key = "password" value = Client password
  • key = "grant_type" value = "password"

Appliance services

-localhost:9852/api/v1/appliances

  • in the header add the following key and the value
  • key ="Authorization" value = " Bearer Acesstoken" where acesstoken is the token genrated by localhost:9852/oauth/token

BulentinBoard services

-localhost:9852/api/v1/bulletinboard

  • in the header add the following key and the value
  • key ="Authorization" value = " Bearer Acesstoken" where acesstoken is the token genrated by localhost:9852/oauth/token

UI of the Student Residence

To see the user interface of the application, any of the following method can be used

method to run user interface on port 8080

  • cd client-ui
  • docker build . -t client-ui
  • docker run -p 8080:80 client-ui

url : http://localhost:8080

method to run user interface on port 3000

  • cd client-ui
  • run npm i
  • npm start

This way the app will start at http://localhost:3000

student-residence-service's People

Contributors

azargunazari avatar codexcoffee1995 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

student-residence-service's Issues

Remove unsecure dependencies

There are some dependencies that have security related issues, they could be removed or make pure integrated witih spring boot

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.