Skip to content

Woit/example_projects

Repository files navigation

example_projects

This repo contains two example projects which is described in this file

Prerequisites

It assumes that reviewers have installed 'wget' utility on their Mac OS. It can be checked and installed using this commands

which wget

# and if it not installed:
brew install wget

Also im using (and highly recommend) utility xcodegen for generating Xcode project file It also can be installed via homebrew:

brew install xcodegen

Task 2: Polis local server

For build and check this command-line app you need navigate to folder /AstroSearch and run command

swift build

There is several ways to run this command-line app, but probably easiest way is run

./.build/debug/astro-search start

It will run local server with default parameters on localhost:8080/api.

For more details run

./.build/debug/astro-search help
# or
./.build/debug/astro-search help start

Service can also be run from Xcode, but first it required to run xcodegen. Just jump to /AstroSearch folder and run 'xcodegen' in console. Then you can open .xcodeproj file in Xcode

Some api path examples (assuming that server is started with default parameters):

https://localhost:8080/api/updateDate
https://localhost:8080/api/numberOfObservingFacilities
https://localhost:8080/api/search?name=ei
https://localhost:8080/api/location?uuid=0ABECE98-B5A2-4F5A-ABA2-84799C0DBEF8

Task 1: Monitoring service

The development of two services from first task is stopped, because I think that the description of the services A and B are confused. If it was assumed that the service B acts as a monitor service, then the calculation of the average response of the server-target A, as well as the maintenance of logs, is the responsibility of the service B, but not an A. Clarify it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages