Coder Social home page Coder Social logo

view_spot_finder's Introduction

view_spot_finder

This repository provides two solutions (local executable and aws serverless function via sam) for the view spot finder coding challenge see the Assignment[1][1][1][1][2].pdf.

Assignment.PDF

view_spot_finder_local

Here we have the local implementation of the coding challenge. To run it locally install go https://go.dev/learn/. Navigate to the folder ./view_spot_finder_local and execute the following:

go run .\main.go ..\mesh[1][1][1][1].json 20
  • The first parameter needs to point to json file (like in the root folder of the project \mesh[1][1][1][1].json...)
  • The second parameter specifies how many view spots should be output

There are also executables provided under Release v1.0 on the release page in github. Download the executable for your specific system. Here's an example for windows:

./view_spot_finder_local_win.exe C:\Development\git_repository\view_spot_finder\mesh_x_sin_cos_20000[1][1][1][1].json 20

view_spot_finder_sam

Here we have the same coding challenge implementation, but developed as an AWS Serverless Function. To get started get the AWS SAM CLI https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html. (You also need docker)

To test the function, I provided several HTML-Requests as templates. These are located under ./view_spot_finder_sam/thunder-requests. To use them install the Thunder Client extension for Visual Studio Code. https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client

After that you can import the collection of requests via Collections -> Import (Bulk) and select the thunder-collection_view-spot-finder.json.

To start the local api, execute the following (clearly in the view_spot_finder_sam folder)

sam local start-api

After the server started you can execute th requests with the Thunder Client.

If you want to test the application after changes, you need to execute make (you need to have make installed on your system) under the ./view_spot_finder_sam/ folder. It will build the new version for the AWS Serverless Function.

view_spot_finder's People

Contributors

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