Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kirillesau/trip-api
The example has been created for learning purposes only.
https://github.com/kirillesau/trip-api
Last synced: about 2 months ago
JSON representation
The example has been created for learning purposes only.
- Host: GitHub
- URL: https://github.com/kirillesau/trip-api
- Owner: kirillesau
- License: mit
- Created: 2024-05-04T18:32:09.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-07-06T05:52:07.000Z (6 months ago)
- Last Synced: 2024-07-06T06:47:02.342Z (6 months ago)
- Language: Java
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Trip API
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![GitHub last commit](https://img.shields.io/github/last-commit/kirillesau/trip-api)
[![Java CI with Maven](https://github.com/kirillesau/trip-api/actions/workflows/build-with-maven.yml/badge.svg?branch=master)](https://github.com/kirillesau/trip-api/actions/workflows/build-with-maven.yml)
[![Docker Image CI](https://github.com/kirillesau/trip-api/actions/workflows/build-docker-image.yml/badge.svg?branch=master)](https://github.com/kirillesau/trip-api/actions/workflows/build-docker-image.yml)In this repository I provide an API for the management of excursions. The API is implemented using Spring Boot and
PostgreSQL.## Prerequisite
The example has been created for learning purposes only and is intended for private use only.
## How to run
### Maven
```shell
./mvnw package spring-boot:run
```### Docker
```shell
docker build -t kirillesau/trip-api .
docker run -p 8888:8080 -d --name trip-api kirillesau/trip-api
```## Add own data
To add your own data, you can use the following options:
### `application.properties`-File
```properties
spring.sql.init.data-locations=file:
```### Docker-Compose
```yaml
volumes:
- path/platform/data.sql:path/container/data.sql
environment:
- SPRING_SQL_INIT_DATA-LOCATION: file:path/container/data.sql
```