GithubHelp home page GithubHelp logo

my-trips-server's Introduction

Organization

This project contains all that's needed to build, run and deploy the backend.

/dep            usefull dependencies for running the service locally
/docs           docs (in progress) and tools
/.mvn           maven dependencies
/src            project sources

Setup

Building and running locally

To build and run the project, you need the following environment:

  • JDK 21 or higher
  • docker
  • docker-compose

You can also set runtime properties by adding them in the .config-local/local.properties file.

Running

To run locally:

  1. you need to launch the external services (MySQL, ...) as following:
docker-compose -f dep/docker-compose.yml up -d

you need to restart it with option --force-recreate.

docker-compose -f dep/docker-compose.yml up --force-recreate -d
  1. set the Provider service file in .config-local; this file is not included in the project for security reasons.

  2. configure properties in .config-local/local.properties; especially, the smart.content.generate=true directive will create some test data to start; don't forget to put it to false after.

  3. run the project via any of the following method:

  • launching the Application class in IntelliJ (need to provide the VM options -Dspring.profiles.active=local in the launch configuration)

Postman

A shared collection is available in this folder with all the API calls registered. Use PMS to get it. The collection integrates a pre-request script that will automatically gather an authentication token before each request.

API doc

A Swagger documentation is generated at runtime by SpringDoc at

http://localhost:8080/docs/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config#/

my-trips-server's People

Contributors

abdiaw221 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.