Giter Site home page Giter Site logo

hackathon's Introduction

Java Fullstack Hackathon 2024


The project is split into four folders

  • java-backend
  • dotnet-backend
  • react-frontend
  • angular-frontend

You should be able to combine both backends with any of the frontends interchangeably.
You will decide with your team which technologies to use.

Setup

If your setup already has some of the required tools installed, please adjust accordingly.

  1. Both frontends need Node to run. Install newest Node from here https://nodejs.org/en/ (currently 20.11.1 LTS)
  2. Run npm install -g [email protected]
  3. Run npm install -g @angular/[email protected]
  4. Verify your versions with ng version:
    Angular CLI: 17.2.3
    Node: 20.11.1
    Package Manager: npm 10.5.0
  5. Install a new version of IntelliJ or VSCode
  6. Clone the master branch with git clone https://github.com/Cyberdog52/hackathon.git
  7. (optional) Open the project with IntelliJ and let gradle build the project. Skip this step if you don't intend to work with java during the hackathon.
  8. (optional) If prompted, install java (17.0.5). Skip this step if you don't intend to work with java during the hackathon.
  9. Install the npm dependencies with cd angular-frontend followed by npm install
  10. Install the npm dependencies with cd react-frontend followed by npm install

During the hackathon your team can decide to use a custom branch on this GitHub repository or to fork it to your own private repository.

Run

Start java backend

  1. Start the java backend either by
    1. By selecting the Java Backend run configuration and running it runconfig-springboot.png
    2. Or by executing ./gradlew java-backend:bootRun

You should be able to open the Swagger endpoint documentation at http://localhost:8080/swagger-ui/index.html. swagger.png

Dotnet backend

Prerequisites

Tools
Name Purpose Version Version command License
Visual Studio 2022 IDE 17.9.2 MIT
.NET SDK .NET runtime and development tools 8.0 dotnet --version MIT,
Apache 2.0

In Visual Studio Installer, make sure to include the ASP.NET and web development workload.

Run dotnet backend

You should be able to open the Swagger endpoint documentation at http://localhost:8080/swagger/index.html.

  1. make sure that you have all the prerequisites installed
  2. Start the dotnet backend either by
    1. Clicking on the green play button HackathonWebApi

      runconfig-dotnet.png

    2. Or by using dotnet commands

       > cd hackathon\dotnet-backend\HackathonWebApi
       > dotnet restore
       > dotnet clean
       > dotnet run

Start Angular frontend

  1. By selecting the Angular Frontend and running it runconfig-npm.png
  2. Or by executing cd angular-frontend followed by npm start

You should now be able to open http://localhost:4200 to access the frontend.

Now you should see the following screen: setup-complete-with-example-component.png

Start React frontend

  1. By selecting the React Frontend and running it runconfig-react.png
  2. Or by executing cd react-frontend followed by npm run dev

You should now be able to open http://localhost:5137 to access the frontend.

Now you should see the following screen: setup-complete-with-example-component.png

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.