Giter Site home page Giter Site logo

kplich / elx-back-end Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 415 KB

Back end for application developed as part of my engineering thesis. A web application for posting classifieds supported by smart contracts.

Kotlin 100.00%
spring-boot kotlin smart-contracts back-end solidity

elx-back-end's Introduction

ELX - back end

Back end for ELX application written in Spring Boot with Kotlin.

Running the application locally (dev profile)

The application requires Java 11.

Copy example-application-dev.properties and example-data.sql to the main/resources/ folder and rename them to application-dev.properties and data.sql, respectively. Edit the application-dev.properties file with details about your database driver, connection, secrets; adjust the configuration to your needs.

Use the default data initialization script or fill it with your own data. To use the application fully, you'll certainly have to change the users' Ethereum addresses. The script provides four accounts:

  • username: jasmine03, password: maybE4$$$
  • username: maryjann password: Maryjann1!
  • username: jerrybumbleberry, password: Jerrry1!
  • username: NewKidOnTheBlock, password: NewKidd0)

On Windows, run:

gradlew.bat bootRunDev

On Linux, run:

./gradlew bootRunDev

The application will be available under http://localhost:8080.

Running the application in production

Define environment variables DATABASE_URL and JWT_SECRET. On Windows, run:

gradlew.bat bootRun

On Linux, run:

./gradlew bootRun

The application will be available under http://localhost:8080.

Packaging the application

Using the Gradle wrapper (the gradlew file), run the bootJar task. The resulting JAR file will be placed in build/libs.

Running the tests

Using the Gradle wrapper, run the test task.

Display other build/run tasks

Running ./gradlew tasks will output all available tasks.

elx-back-end's People

Contributors

kamil-plich avatar kplich 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.