Skip to content

roharon/gmoney-store-server

Repository files navigation

Gmoney Store Server

CI Docker compose CI & CD License: MIT Github contributors

Run on Ainize - just client (api server not work on this demo)


image


About The Project

Store finding service that support local-money in Gyeonggi-do, Republic of Korea. Need GPS permissions allow to find store nearby.

This repository is the API server using REST architecture

Tech Stack

  • Java 8
  • Spring Boot 2
    • Spring data JPA
    • Gradle
  • PostgreSQL 12
  • Nginx
  • Docker, Docker-compose

API document

Click to view Docs on Swagger Hub

Getting Started - with Docker

Prerequisites

  • Docker
  • Docker-compose 3.4

Installation & Run

  1. Run docker-compose file

    $ sudo docker-compose -f docker-compose-dev.yml up --build
  2. Execute alembic to DB migration

    $ alembic upgrade head
  3. Get local-money store current situation data-set and import to postgres.

Getting Started - without Docker (NOT RECOMMEND)

Prerequisites

  • OpenJDK
  • PostgreSQL database server

Installation

  • JDK

    sudo add-apt-repository ppa:openjdk-r/ppa
    sudo apt install openjdk-11-jdk
  1. Turn on your postgres server

  2. Modify /src/main/resources/application-develop.yml configuration file.

    spring:
     datasource:
       username: <YOUR PSQL USERNAME>
       password: <YOUR PSQL PASSWORD>
       url: jdbc:postgresql://<YOUR PSQL IP>:<YOUR PSQL PORT>/<YOUR PSQL DB>
  3. Modify /alembic.ini (DB migration tool configuration file based on python)

    - sqlalchemy.url = postgresql+psycopg2://roharon:password@localhost/gmoney-test
    + sqlalchemy.url = postgresql+psycopg2://<YOUR PSQL USERNAME>:<YOUR PSQL PASSWORD>@>YOUR PSQL IP>/<YOUR PSQL DB>
  4. Get local-money store current situation data-set and import to postgres.

License

Distributed under the MIT License. See LICENSE for more information.

Releases

No releases published

Packages

 
 
 

Contributors