Git Product home page Git Product logo

website's Introduction

website

website

Bulgarian Java User Group future website build on Quarkus, Hibernate Panache and React.

For tasks use the github issues.

react

webui related stuff

Installation

  • install npm (brew install npm, apt install npm, pacman -S npm)

  • install npm install yarn (npm install yarn)

We use eirslett’s maven plugin to build the front end.

We use mvn frontend:install-node-and-npm to install project specific versions of npm and node. This is bound to generate-resources phase.

IntelliJ 15 has mvn <3.1, we require >3.1. So install maven separately.

Running the backend

The backend is using Quarkus and needs just a little tweak before it is started. You’ll first need to install the database which for testing purposes can be ran with docker. To run the database execute the following line in your terminal:

 docker run --network="host" --name mysql-test -e MYSQL_ROOT_PASSWORD=admin -d mysql:5

Normally the server will bind to port 3306. Your database user is root and the password is admin.

Alternatively you can install a local MySQL/MariaDB engine version 5.7 (do not use 8.x) and set the root password to 'admin'

When the container is running (or when your local database is running), connect to the database server and create the database:

CREATE DATABASE bgjug CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

After a success you should be able to start the application server and send requests to it. To start the server in developer mode execute: ./mvnw compile quarkus:dev

Note
Since the database creation strategy is drop-and-create you will see exceptions in the server log when you run it for the first time. This is fine as hibernate is trying to query the deletion of non-existing tables.

In order to generate SOME data like articles and tags and etc please open http://localhost:8080/api/test once

Alternatively you should import the database backup

You can also open the frontend folder and run npm run watch, but keep in mind any change in JS will restart the server and the test data will be lost.

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.