Skip to content

baixa/softweb-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


SoftWeb
SoftWeb-API

API of multiplatform application store SoftWeb

Key FeaturesLanguages and ToolsHow To Use

Key Features

  • View applications
  • Download application
  • Promote your product as a developer
  • Get statistics about your applications
  • Cross-platform
    • Windows, macOS and Linux.

Languages and Tools

The main structure is based on Java (Spring). Desktop application is developed with Java framework - JavaFX.

Java  Spring  PostgreSQL 

How To Use

Launch

To clone and run this application, you'll need Git and Docker installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/baixa/softweb-api

# Go into the repository
$ cd softweb-api

# Run installation script (build jar and run docker-compose)
$ sh bin/control.sh start

Base commands

Base commands to manage containers

# Build jars and docker images and creates network
$ sh bin/control.sh start

# Stops containers and complete removes docker network and images
$ sh bin/control.sh rm

# Stops all containers
$ sh bin/control.sh stop

# Restart containers
$ sh bin/control.sh restart # Only reboot all containers
$ sh bin/control.sh restart -f # Remove all containers and create them from scratch
$ sh bin/control.sh restart -f container_name # Remove container by name and create it from scratch

Simplification

If you want, you can create an alias of sh bin/control.sh command

 # Create alias
 $ echo alias sw=\'sh bin/control.sh\' >> ~/.bashrc
 
 # Refresh .bashrc
 $ source .bashrc
 
 # Use simplified commands
 $ sw start 

Postman

  1. Launch Postman and click Import button
  2. Find and select collection
  3. Imported collection contains all base requests to Store-API

Swagger Open API

SpringDoc (Swagger) is available at link: http://localhost:8180/v1/api-swagger/swagger-ui.html Due to inconsistencies with the Gateway mechanism (in development), slight malfunctions are possible.


GitHub @baixa