项目作者: rezaep

项目描述 :
A simple project based on Java 11, Spring Boot, PostgreSQL, Hibernate Spatial, NestedJ, and JUnit 5.
高级语言: Java
项目地址: git://github.com/rezaep/electric-vehicle-charging-station-management-system.git
创建时间: 2020-08-16T15:21:26Z
项目社区:https://github.com/rezaep/electric-vehicle-charging-station-management-system

开源协议:GNU General Public License v3.0

下载


" class="reference-link">electric-vehicle-charging-station-management-system build Quality Gate Status Maintainability Rating Coverage

A simple project based on Java 11, Spring Boot, H2, Hibernate Spatial, NestedJ, and JUnit 5.

Getting Started

These instructions will get you a copy of the project and run on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to run the project:

  1. Java Development Kit (JDK 11 or newer)
  2. Maven
  3. Docker (if you want to run the application using the Docker image)

Installing

Clone the repository:

  1. git clone https://github.com/rezaep/electric-vehicle-charging-station-management-system

Use Maven build tool to compile and build the project:

  1. mvn clean compile

Running the tests

Unit tests

To run unit tests use the following command:

  1. mvn test

Running the application

Run using Java

To run the application using Java, run the following command:

  1. java -jar target/evcsms-1.0.0.jar

Run using Maven and Spring Boot plugin

To run the application using Spring boot maven-plugin, run the following command:

  1. mvn spring-boot:run

Run using Docker

To package the Jar file inside a Docker image, use the following commands:

  1. mvn clean package
  2. docker build -t image:tag . (e.g. subliz/evcsms:latest)

To run the application using Docker, run the following command:

  1. docker run image:tag (e.g. subliz/evcsms:latest)

Run using Docker Compose

To run the application using Docker Compose, run the following command:

  1. docker-compose up -d

Start working with APIs

Swagger generates documentation of REST APIs, which is accessible using this link.

Authors

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details