-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
123 changed files
with
9,181 additions
and
771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Steps to reproduce** | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
sudo: true | ||
|
||
webhooks: https://fathomless-fjord-24024.herokuapp.com/notify | ||
|
||
git: | ||
depth: 2 | ||
|
||
language: java | ||
jdk: openjdk8 | ||
before_install: | ||
- openssl aes-256-cbc -K $encrypted_e664fa697fe4_key -iv $encrypted_e664fa697fe4_iv | ||
-in service_account.json.enc -out app/src/test/resources/service_account.json -d | ||
- chmod +x app/gradlew | ||
|
||
script: | ||
- cd app | ||
- ./gradlew clean check |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,133 @@ | ||
# Planer-Server | ||
Planner-Server | ||
============== | ||
|
||
API-reference [[ru](PROTOCOL.RU.md) | [en](PROTOCOL.EN.md)] | ||
[![Build Status](https://travis-ci.org/abelidze/planner-server.svg?branch=develop)](https://travis-ci.org/abelidze/planner-server) | ||
|
||
Planner-Server is an API-server for calendar / planner apps built on top of Spring Boot Framework. | ||
|
||
It follows iCalendar (RFC 5545) specification with some assumptions (some stuff depends on a user of the API). | ||
|
||
API-reference [[ru](PROTOCOL.RU.md) | [en](PROTOCOL.EN.md) | [swagger](http://planner.skillmasters.ga/docs)] | ||
|
||
All about recurrence: [recurrence-overview.md](https://github.com/bmoeskau/Extensible/blob/master/recurrence-overview.md) | ||
|
||
![iCal specification](ICalendarSpecification.png "iCalendar") | ||
|
||
Installation | ||
------------ | ||
|
||
> **Latest** | ||
Download project as '.zip' archive and extract it to whatever you like directory or use `git`: | ||
```sh | ||
$ git clone https://github.com/abelidze/planner-server.git | ||
``` | ||
|
||
> **Release** | ||
Visit [releases page](https://github.com/abelidze/planner-server/releases) and check it for the latest release. | ||
|
||
|
||
Requirements | ||
------------ | ||
|
||
* JDK 1.8 | ||
|
||
|
||
Database | ||
-------- | ||
|
||
API-server comes with two JDBC dependencies: SQLite for development and PostgreSQL for production. | ||
|
||
Assuming that it provides two different profiles: | ||
- development: application.properties [default] | ||
- production: application-prod.properties | ||
|
||
To choose one of that profiles you can use standart Spring's command-line argument setting, e.g.: | ||
|
||
```sh | ||
java -jar -Dspring.profiles.active=prod server.jar` | ||
``` | ||
|
||
|
||
Configuration | ||
------------ | ||
|
||
Before running you must do some work with configs. | ||
|
||
Planner-Server uses Firebase for authentication and you have to configure it on your own. | ||
|
||
You can find more information [here](https://firebase.google.com/docs/admin/setup#initialize_the_sdk). | ||
|
||
1. Create new Firebase project. | ||
More information [here](https://firebase.google.com/docs/android/setup#create-firebase-project). | ||
2. Retrieve .json service account key, rename it to `service_account.json` and place to one of locations: | ||
- environment variable `GOOGLE_APPLICATION_CREDENTIALS`, e.g. `export GOOGLE_APPLICATION_CREDENTIALS=<path_to_json>` | ||
- `{project_path}/{src}/main/resources` and `{project_path}/{src}/test/resources` | ||
- near compiled `server-{VERSION}.jar` binary in the same directory | ||
3. After that you can add your applications to Firebase. | ||
More information [here](https://firebase.google.com/docs/android/setup#register-app). | ||
|
||
|
||
Running | ||
------- | ||
|
||
> **Gradle / Gradle Wrapper** | ||
|
||
```sh | ||
# Assuming you are in repo root directory | ||
cd app && gradlew bootRun | ||
``` | ||
|
||
> **Production** | ||
|
||
```sh | ||
# Assuming you are in repo root directory | ||
cd app && gradlew clean bootJar | ||
java -jar -Dspring.profiles.active=prod ./build/libs/server-{VERSION}.jar` # replace {VERSION} with builded version | ||
``` | ||
|
||
> **Docker-Compose** | ||
```sh | ||
# Development | ||
docker-compose up -d --force-recreate --remove-orphans --build | ||
|
||
# Production | ||
docker-compose -f docker-compose.production.yml up -d --force-recreate --remove-orphans --build | ||
|
||
# Shutdown | ||
docker-compose down --remove-orphans | ||
``` | ||
|
||
|
||
Documentation / Swagger | ||
----------------------- | ||
|
||
Basic PROTOCOL description and information about authorization can be found there: [ [ru](PROTOCOL.RU.md) | [en](PROTOCOL.EN.md) ] | ||
|
||
When server is running it provides autogenerated API-documentation with Swagger-UI. | ||
|
||
For local development it can be accessed with: | ||
|
||
``` | ||
http://localhost:8080/swagger-ui.html | ||
# or | ||
http://localhost/swagger-ui.html | ||
``` | ||
|
||
|
||
Contact | ||
------- | ||
|
||
Developers on Telegram: | ||
|
||
[![https://t.me/Abelidze](https://img.shields.io/badge/%E2%9E%[email protected]?style=flat-square&&colorA=2D233B)](https://t.me/Abelidze) | ||
|
||
|
||
License | ||
------- | ||
Planner-Server is open-sourced software licensed under the [MIT License](https://opensource.org/licenses/MIT). | ||
|
||
#### Disclaimer | ||
|
||
This program is provided "AS IS" without warranty of any kind. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.