Giter Site home page Giter Site logo

shreyajaiswal1604 / coursework-csye-network-structure-cloud-computing Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

This graduate-level course covers topics and technologies related to cloud computing and its practical implementations

License: MIT License

Makefile 1.00% Python 31.43% PowerShell 50.30% Shell 17.27%

coursework-csye-network-structure-cloud-computing's Introduction

Coursework-CSYE-Network-Structure-Cloud-Computing

This graduate-level course covers topics and technologies related to cloud computing and its practical implementations



1. Health App Check


DESCRIPTION : create a backend RESTful API application with a health check endpoint (/healthz), fulfilling the following requirements: Check if the application has connectivity to the database.

  • Return HTTP 200 OK if the connection is successful.
  • Return HTTP 503 Service Unavailable if the connection is unsuccessful.
  • The API response should not be cached. Make sure to add cache-control: 'no-cache' header to the response.
  • The API request should not allow for any payload. The response code should be 400 Bad Request if the request includes any payload.
  • The API response should not include any payload.
  • Only HTTP GET method is supported for the /healthz endpoint.

Create Virtual Env

python3 -m venv henv

Activate Virtual Env

source henv/bin/activate

Add all requirement

pip install -r requirements.txt

Install packages in the Virtual Env

pip install Flask SQLAlchemy
pip install python-dotenv
pip install psycopg2-bina```

## Run Docker-compose file
```bash
docker-compose up

Stop Docker-compose file

docker-compose down

Run the python application

uvicorn app:app --reload```

---

coursework-csye-network-structure-cloud-computing's People

Contributors

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