GithubHelp home page GithubHelp logo

book-booking's Introduction

Book-booking


Content

Technologies

  • Spring Boot
  • Spring Data JPA
  • Spring Cache
  • Spring Data Redis
  • Spring Mail
  • Liquibase
  • PostgreSQL
  • Spring Security

Running with Docker

Before using the Docker configuration files, ensure that you have the following software installed on your machine:

Usage

To use the Docker configuration files, follow the steps below:

  1. Clone this repository to your local machine:
    git clone https://github.com/DmBalaev/Book-booking.git
    
  2. Navigate to the project directory:
    cd Book-booking
    
  3. Build the maven project
    mvn clean install -DskipTests=true
    
  4. Start the containers defined in the docker-compose.yaml file:
    docker-compose up -d
    
    The -d flag runs the containers in the background (detached mode).

Running without Docker

This section provides instructions for running the Project Name project without Docker. You may choose to run the project without Docker if you prefer to set up the environment manually or if Docker is not available on your system.

Prerequisites

Before running the project without Docker, ensure that you have the following software installed on your machine:

Configuration

To configure the project for running without Docker, you will need to update the necessary configuration files.

Application Configuration

  1. Locate the application.yml file in the project's configuration directory.

    /path/to/Book-booking/src/main/resources/application.yml
    
  2. Open the application.yml file in a text editor.

  3. Update the configuration properties as per your environment, such as the database connection details, API keys, or any other relevant settings.

    spring:
       redis:
         host: localhost
         port: 6379 
       datasource:
          url: jdbc:postgresql://db:5432/booking_db
          username: adm
          password: 123

    Update the url, username, and password values according to your PostgreSQL configuration.

  4. Save the changes to the application.yml file.

Build and Run

  1. Open a terminal or command prompt.
  2. Navigate to the project directory
  3. Build the project using Maven:
    mvn clean package
    
    This command compiles the source code, runs the tests, and packages the application into an executable JAR file.
  4. Once the build is successful, you can run the application using the following command:
    java -jar target/Book-booking-0.0.1-SNAPSHOT.jar
    
    The application should start, and you can access it in your web browser at http://localhost:8080

Configuring Email Notifications

 spring:
    mail:
      host: smtp.gmail.com
      port: 587
      username: [email protected]
      password: "pass"
      test-connection: true

book-booking's People

Contributors

dmbalaev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.