Coder Social home page Coder Social logo

containerized-python-webapp-azure's Introduction

u-btech-demo

Requirements

Create a web application API using python called: “Bookjobs.” The application has three controllers:

  1. POST: create a new job.
  2. GET: list all jobs.
  3. DELETE: delete a job.

The app is app.py under the /app folder.

Instructions

  1. Run the app
  2. Use postman to GET http://127.0.0.1:5000/bookjobs
  3. To get a specific ID, use GET http://127.0.0.1:5000/bookjobs/{id}
  4. To DELETE a specific ID, use DELETE ``http://127.0.0.1:5000/bookjobs/{id}`, and specify in the body the key-value pair to delete in json format.

Instructions if running containerized app

  1. Use the curl_commands.sh file to issue REST API commands for GET/POST/DELETE.
  2. Run the container by binding the host port to the container exposed port: docker run -p 80:5000 -it flask.
  3. Open another shell terminal and then issue the curl commands.
  4. The app will run on your browser at localhost/bookjobs URL.

containerized-python-webapp-azure's People

Contributors

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