Skip to content

PASTES is a project for creating and viewing posts, such as articles, tutorials, or notes, with the option to attach files.

License

Notifications You must be signed in to change notification settings

laviprog/pastes

Repository files navigation

PASTES

PASTES is a project for creating and viewing paste (posts), which can be small articles, training tutorials or just notes, you can attach files to all this, which is always nice.

The server part of the project is presented in this repository. This is a REST API application that is implemented using:

  • Java 21
  • Spring
  • PostgreSQL
  • S3
  • Docker
  • JWT

Contents

Getting started

Step 1: Set Up Environment Variables

  1. Fill in the environment variables in the setenv.sh file.

  2. Activate environment variables by running setenv.sh file:

source setenv.sh

Step 2: Build Application

mvn clean package

Step 3: Run Application

mvn spring-boot:run

If you have selected port 8080, the application will be available at http://localhost:8080.

The OpenAPI documentation will be available at http://localhost:8080/swagger-ui/index.html.

Running with Docker

Step 1: Build Application

mvn clean package

Step 2: Start with Docker Compose

docker-compose up --build

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

PASTES is a project for creating and viewing posts, such as articles, tutorials, or notes, with the option to attach files.

Topics

Resources

License

Stars

Watchers

Forks

Languages