Git Product home page Git Product logo

micro-webservice's Introduction

c’t-Demo: Micro-Webservice

Für c’t-Leser

Dieses Repository enthält den Quellcode für den in c’t 7/2023, S. 140, entwickelten Micro-Webservice. Um es auf Ihren Rechner zu bekommen, müssen Sie es klonen:

git clone https://github.com/ct-Open-Source/micro-webservice.git
cd micro-webservice

Der Code für den 1. Teil befindet sich im Branch „part1“. Sie checken ihn aus mit

git checkout part1

Systemvoraussetzungen

Der Webservice benötigt das Boost-Framework, das Sie wie folgt installieren können.

Ubuntu

sudo apt install libboost-dev

macOS 13 Ventura

brew install libboost-dev

Kompilieren

Zum Erzeugen der Build-Dateien kommt CMake zum Einsatz:

CMAKE_BUILD_TYPE=Release cmake .

Wenn Sie statt eines Release ein Binary zum Debuggen erzeugen wollen, wählen Sie „Debug“ statt „Release“.

Falls CMake die Boost-Bibliothek nicht finden kann, müssen Sie den Pfad (beispielsweise /opt/boost-1_81_0) dorthin in der Umgebungsvariable BOOST_ROOT angeben:

BOOST_ROOT=/opt/boost-1_18_0

Nun können Sie den Compiler anwerfen:

cmake --build .

Es entsteht das Binary micro-webservice, das Sie mit

./micro-webservice

aufrufen können.

Copyright ©️ 2023 Oliver Lau, Heise Medien GmbH & Co. KG


Nutzungshinweise

Diese Software wurde zu Lehr- und Demonstrationszwecken geschaffen und ist nicht für den produktiven Einsatz vorgesehen. Heise Medien und der Autor haften daher nicht für Schäden, die aus der Nutzung der Software entstehen, und übernehmen keine Gewähr für ihre Vollständigkeit, Fehlerfreiheit und Eignung für einen bestimmten Zweck.

micro-webservice's People

Contributors

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