Giter VIP home page Giter VIP logo

technicaltest's Introduction

Building & Runing the project

This project can be easily build and run following the next steps:

  1. Build the container image To build the image run this command on the terminal on the solution folder

    docker build . -t technicaltest
    
  2. Run the container Run the container image executing this command on terminal

    docker run -d -p 8000:80 technicaltest
    

    After the application starts, navigate to http://localhost:8000/swagger in your web browser to test the service using the Swagger UI interface or using any other tool, for example run the next command on the terminal to test the get method using curl :

    curl -X 'GET' 'http://localhost:8000/Geolocation'
    

Note

For testing purpose and avoid aditional setups or configurations the project don't work with https. Full explanation for how to setup and work with dev certificates in .net 6 consult this link and run the container with this command :

docker run -it -p 8000:80 \
-p 8001:443 \
-e ASPNETCORE_HTTPS_PORT=8001 \
-e ASPNETCORE_URLS="http://+;https://+" \
-e ASPNETCORE_ENVIRONMENT=Production \
-v ${HOME}/.microsoft/usersecrets/:/root/.microsoft/usersecrets \
-v ${HOME}/.aspnet/https:/root/.aspnet/https/ technicaltest

technicaltest's People

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.