https://github.com/h1alexbel/realo
An experimental REST API Server for Real Estate deals.
https://github.com/h1alexbel/realo
java liquibase postgresql rest
Last synced: 2 months ago
JSON representation
An experimental REST API Server for Real Estate deals.
- Host: GitHub
- URL: https://github.com/h1alexbel/realo
- Owner: h1alexbel
- License: mit
- Created: 2022-04-24T18:14:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T15:06:16.000Z (almost 2 years ago)
- Last Synced: 2023-07-20T16:29:13.325Z (almost 2 years ago)
- Topics: java, liquibase, postgresql, rest
- Language: Java
- Homepage: https://h1alexbel.github.io/realo/
- Size: 305 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://www.rultor.com/p/yegor256/rultor)

[](https://hub.docker.com/repository/docker/abialiauski/realo/general)
[](https://codecov.io/github/h1alexbel/realo)
[](https://hitsofcode.com/github/h1alexbel/realo/view?branch=main)
Realo is an experimental engine for Real Estate deals.
## Glossary
1.User - the user/customer of the application.2.Provider - person, or an organization which can provide market with estates and its building.
3.Estate - an extensive area of land in the country, usually with a large house, owned by one person, family, or organization.
4.Announcement - a formal public statement about a estate on some resources/sites.
# Prerequisites
You need to have [```Docker```](https://www.docker.com), ```Java 11+```, and ```Maven 3.3+``` installed.
# Quick Start
Run this script to start 2 containers: Realo-API,
and [PostgreSQL](https://www.postgresql.org)```shell
$ sh up.sh
```Then, go to ```POST```
```localhost:8080/api/v1/auth/login```
With the next body:```json
{
"username": "api_admin",
"password": "password"
}
```You will receive [Access](https://www.wikiwand.com/en/Access_token) token.
You will need them using the Realo API.
Access Token expires in 5 minutes.# Endpoints
API Management docs placed here: ```/swagger-ui```# Security
Realo is a secured API. We are using [```JWT```](https://www.wikiwand.com/en/JSON_Web_Token) token
to authenticate and authorize users.
So, each request to the secured resources should go with the ```Autorization``` header.
e.g.:```
-X Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBtYm9vay5jb20iLCJyb2xlIjoiQURNSU4iLCJpYXQiOjE2NzE0NjA4OTcsImV4cCI6MTY3MTQ2MTE5N30.O8m05s3xEkhroTFjh9xdaCUMdUB1B-pKEu9f0TaLb1s
```Also, we have 3 types of authority: ```USER```, ```AGENT``` and the ```ADMIN```
# Want to contribute?
Don't be shy. Just submit an [issue](https://github.com/h1alexbel/realo/issues) or open
a [pull request](https://github.com/h1alexbel/realo/pulls).