Code Monkey home page Code Monkey logo

climbing-ws's Introduction

About

REST Web Service hosted on Tomcat. Used in https://github.com/jossi87/climbing-web as a gateway to a MySQL database.

๐Ÿ”— Product

โš ๏ธ License

Distributed under the GNU GENERAL PUBLIC LICENSE (Version 3): https://brattelinjer.no/gpl-3.0.txt

๐Ÿš€ Onboarding

Database

NOTE: If you're using the command line, you can execute this directly:

mysql -r root -pYOUR_PASSWORD -h 127.0.0.1 < init.sql

Eclipse

  • Download Eclipse Installer from (https://www.eclipse.org/downloads/)
  • Choose "Eclipse IDE for Enterprise Java and Web Developers"
  • "Checkout projects from Git" (https://github.com/jossi87/climbing-ws)
  • Install Tomcat server: File -> New -> Other -> Tomcat v10.1 Server
  • Edit buldreinfo.properties in "com.buldreinfo.jersey.jaxb.config" (all values are required for the server to run, just add wathever you want to "auth0.secret", "google.apikey" and "vegvesen.auth")
db.hostname=localhost
db.database=buldreinfo
db.username=root
db.password=YOUR_PASSWORD
auth0.secret=WhateverYouWant
google.apikey=WhateverYouWant
vegvesen.auth=WhateverYouWant

Run Project

  • Right click on "com.buldreinfo.jersey.jaxb" in Project Explorer and choose "Run as" -> "Run on server" to start web service.

Testing

You should now be able to access the server on:

Docker

If you don't want to install MySQL, and you do have docker installed, then you can use that instead:

docker compose up

This will download the necessary images and spin up a MySQL server, including a storage volume for the database. The database will be initialized with a default password of brattelinjer - change this before deploying publicly.

NOTE: You will also need to make sure that the password you use is reflected in buldreinfo.properties.

๐Ÿค Contact

climbing-ws's People

Contributors

jossi87 avatar dependabot[bot] avatar evancharlton avatar chrisinabox 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.