Git Product home page Git Product logo

rapidfort's Introduction

rapid-app

REST API and Web Server

This project demonstrates the creation of a REST API-based web server that allows users to upload any file and retrieve metadata about the uploaded file. The project is containerized using Docker, and Kubernetes manifests are included to facilitate hosting the web server.

Table of Contents

The main goal of this project is to build a web server that accepts file uploads and provides metadata information about the uploaded files. The project includes the following components:

  1. A REST API that handles file uploads and metadata retrieval.
  2. A user interface that allows users to interact with the web server.
  3. Docker containerization for easy deployment.
  4. Kubernetes manifests to host the web server in a Kubernetes cluster.
  • API Definition

The REST API exposes the following endpoints:

  • GET /: Displays the home page of the web server.

  • POST /upload: Uploads a file and shows off its details.

  • User Interface

The project includes a simple user interface that can be accessed via a web browser. This interface allows users to:

  • Upload a file to the server.

  • View metadata about the uploaded files.

  • Dockerization

To facilitate deployment and distribution, the project is containerized using Docker. A Dockerfile is provided, which contains the necessary instructions to build a Docker image of the web server. This Docker image can then be easily run on any Docker-compatible environment.

  • Kubernetes Hosting

The Kubernetes manifests included in the project enable the deployment of the web server to a Kubernetes cluster. By applying these manifests, the web server can be hosted, scaled, and managed within a Kubernetes environment.

  • Github Actions

The project includes a Github Actions workflow that automatically builds and pushes a Docker image of the web server to Docker Hub whenever a new commit is pushed to the main branch. This workflow can be found in the .github/workflows directory. The image is tagged with the commit hash of the commit that triggered the workflow. It is then deployed to a Kubernetes cluster using the Kubernetes manifests included in the project.

Getting Started

To set up and run the project, follow these steps:

For Docker containerization:

  • Build the Docker image: docker build -t image-name:tag .
  • Run the Docker container: docker run -p 5000:5000 image-name:tag

For Kubernetes deployment:

  • Apply the Kubernetes manifests: kubectl apply -f kubernetes/

  • Conclusion

This project showcases the creation of a REST API-based web server that enables users to upload files and retrieve metadata information.

The inclusion of Docker containerization, and Kubernetes deployment further enhance the functionality and ease of deployment.By following the provided instructions, you can set up, run, and test the entire system on your local environment.

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.